I have just started learning java. If you are the one like me who believe that IDE s like netbeans ,eclipse are only for coding experts and beginners should stick to text editors to learn so many new things without errors in code, then you can use notepad ++ which is an advanced text editor and syntax aware .
But by default you can not compile and run a java application directly from notepad ++ since it is just a text editor and not IDE .
To compile and run java application directly from notepad ++ , we can execute a saved commands sequence from notepad ++ . For this , we will install NppExec plugin .
Just download the nppexec plugin and copy it to plugins directory of notepad++ ( or we can just import from notepad++ settings–> Import —>Import Plugin(s) ).
Now within notepad++ main window ,click on plugins–>NppExec—>Execute . Assuming that java bin directory location is C:\Program Files\Java\jdk1.7.0_02\bin , we will paste the following command sequence in the blank window and save it with some name.
C:\Program Files\Java\jdk1.7.0_02\bin\javac $(FILE_NAME)
C:\Program Files\Java\jdk1.7.0_02\bin\java $(NAME_PART)
Done ! , now we can execute any java code with one click ( plugins—->NppsExec–>Execute–>ok) . You can find any coding errors in the console window .