HOWTO: Use Notepad++ to Compile a Java Class

It's easy.

First, go to "Run > Run (F5)"


Then in the pop-up box, input the following string (replace the Java path with the one of your own machine):

"<JAVA_PATH>\javac.exe" "$(FULL_CURRENT_PATH)"


Press "Run" and you may compile the class file.

If you want to use it frequently, please press "Save..." to save this command.