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.Ĭ:\Program Files\Java\jdk1.7.0_02\bin\javac $(FILE_NAME)Ĭ:\Program Files\Java\jdk1.7.0_02\bin\java $(NAME_PART)ĭone !, now we can execute any java code with one click ( plugins->NppsExec–>Execute–>ok). Now within notepad++ main window ,click on plugins–>NppExec->Execute. 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) ). For this, we will install NppExec plugin. To compile and run java application directly from notepad ++, we can execute a saved commands sequence from notepad ++. īut by default you can not compile and run a java application directly from notepad ++ since it is just a text editor and not IDE. 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.