Home>Article>Development Tools> How to run JAVA program in notepad

How to run JAVA program in notepad

(*-*)浩
(*-*)浩 Original
2019-08-09 16:14:36 16776browse

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. .

How to run JAVA program in notepad

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:

How to run JAVA program in notepad
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:

How to run JAVA program in notepad

Click OK or press Enter directly to start compiling and executing the program:

How to run JAVA program in notepad

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn