First of all, let notepad++ compile and run Java, if the computer is already configured in the Java environment (here can refer to my blog about the Java environment configuration of the essay).
Locate the plugin in the options bar above notepad++--->plugin Manager--->show Plugin Manager
Then in the pop-up display plug-in window nppexec This plug-in, and then click Install (because I have been installed here so did not show this plugin out);
If the display fails to install, click on the "?" button on the right side of the selection bar above. "Get plugin", download nppexec plugin on official website. In the downloaded Tarball, unzip the. dll file for the folder inside to the plugins in the notepad++ folder:
After installation, you can see this in notepad++: First let notepad++ compile and run Java, if the computer is already configured in the Java environment (here can refer to my blog about the Java environment configuration of the essay).
Locate the plugin in the options bar above notepad++--->plugin Manager--->show Plugin Manager
Then in the pop-up display plug-in window nppexec This plug-in, and then click Install (because I have been installed here so did not show this plugin out);
If the display fails to install, click on the "?" button on the right side of the selection bar above. "Get plugin", download nppexec plugin on official website. In the downloaded Tarball, unzip the. dll file for the folder inside to the plugins in the notepad++ folder:
After installation, you can see the following in the notepad++:
Click Execute (F6), enter the following command parameters in the following text field:
Npp_save
CD "$ (current_direction)"
C:\Java\jdk1.5.0_14\bin\javac.exe "$ (Full_current_path)"
C:\JAVA\JDK1.5.0_14\BIN\JAVA.EXE-CP "$ (current_directory)" "$ (Name_part)
Please modify the above JDK path yourself
Click Save to start the name of the compiled command, and finally OK. Choose good Java in the language, and then edit your own code in the Text field, press F6 shortcut key, click OK, the console appears the result of the code run, the configuration is successful.
notepad++ Compiling and running Java