Home > Article > Development Tools > How to run JAVA program in notepad
How to run JAVA program in notepad: 1. Start notepad and open plug-in management; 2. Find the [NppExec] plug-in and click to install; 3. Open the java program and click [NppExec] and [Execute] in sequence. .
Notepad's menu bar: Plug-in->Plugin Manager->Show Plugin Manager, check NppExec in Available, and click the Install button.
Menu bar: Plug-in->NppExec->Execute, enter the following code: (recommended learning: notepad use)
NPP_SAVE javac.exe "$(FILE_NAME)" java.exe "$(NAME_PART)"
As shown in the picture:
Click the Sava button, name it Java Compile and Execute, click the Sava button, and click OK to close the dialog box.
Menu bar: Plug-in->NppExec, check Follow $(CURRENT_DIRECTORY).
Press F6 and the following dialog box will appear:
Click OK or press Enter directly to start compiling and executing the program:
The above is the detailed content of How to run JAVA program in notepad. For more information, please follow other related articles on the PHP Chinese website!