
Select Java_Run and click ok to run the Java file in the console see the output below. Go to plugins and open Execute NppExec Script from NppExec. Once the commands are saved, we can now run Java programs. Write the following command in the box opened: cd $(CURRENT_DIRECTORY) Once the program is saved, go to plugins and open Execute NppExec Script from NppExec. java extension, which is, in our case, Java_notepadpp.java. In Notepad++, create a new file, write a Java program, and save it with a. Now press edit for the path in the system variables list:Ĭlick New and add %JAVA_HOME%\bin then click ok three times till the properties menu is closed:Īt this moment, you will need to restart your pc so the environment variables can work properly. In the user variable section, click new and add the JAVA_HOME variable the directory should be your JDK directory: Go to the start menu and search Environment Variable and open as mentioned in the pictures below: Notepad++ will be closed to install the plugin once the plugin is installed, go to the next step. If the NppExec is already installed, it will not be shown in the list.

Go to the Plugins menu option Plugins Admin and install the NppExec plugin.ĭon’t be confused with the second picture.

Once the pre-requisites are installed, we can go to the next step.

If you haven’t already installed Java and Notepad++, the first step is to install JDK and Notepad++.ĭownload and install JDK, Java Runtime Enviroment, and Notepad++.
