The first parameter is the directory where the class file is located the second parameter is the Java program name.
The following is the code of onĤ.2.2 Javanpp.bat: To run Java's class binary file, you need to specify two parameters. These two external tools are javac and java, which add a pause function, which can display output information through the console window when compiling or running a Java program.Ĥ.2.1 javacnpp.bat: To compile the current Java source file, you need to specify a Java source file as a parameter, the screen is paused after running, and the execution result of the compiler is displayed. Table 1 defines these environments for Notepad ++, which can be passed as parameters to external toolsįULL_CURRENT_PATH file path name E: \ java \ HelloNpp.javaĬURRENT_DIRECTORY file directory E: \ java \
Output the results in the Console Dialog window. Switch to the Console Dialog window and execute: , The last output message indicates that Console Dialog is in the state of waiting for new commands. Compared with the Windows command line program, it outputs more information, indicating the start and end of program execution. The black font in the figure indicates the command input by the user, and the green font is the output information of Console Dialog. The output of the compiler in Console Dialog is shown in Figure 3 below. Switch to the Console Dialog window and compile HelloNpp.java for external programs.ģ.3 Console Dialog as a Java development environmentĬlick the "plug-in" main menu, select "NppExec" in the drop-down menu, and select "Show Console Dialog" in the secondary menu.īy default, Console Dialog appears at the bottom of the editor.Ĭreate a new Java source file HelloNpp.java, and enter the following in the editor: For example, you can compile and run Java programs in this window Notepad ++ can also run external programs, and establish mapping relationships with external programs through menu items Enter parameters, etc. This plug-in can complete the basic functions of the Windows console. Notepad ++ default settings support most of the code writing function, the following will enable Notepad ++ to support "word auto-complete" function.Ĭlick the "Settings" menu, select the "Preferences" menu item, a "Preferences dialog box" pops up, select "Backup and AutoComplete", select the "Enable autocomplete for all inputs" checkbox at the bottom of this tab, and Select "Word AutoComplete."ģ.2 Notepad ++ 's plug-in NppExec implements Console Dialog.
Notepad ++ provides a series of programming-related functions, such as automatic recognition of source code types, automatic indentation, syntax coloring, and automatic completion of word / function name support. The download address is:įollow the on-screen instructions to complete the installation.ģ.1 Word auto-complete function configuration It can syntax-color most programming languages.
Notepad ++ is a code editor software that runs under the Windows operating system.
In order to conveniently use the tools in the JDK in the console window, you need to add the path where the JDK binary (bin) file is located in the Windows system environment variable PATH, execute the following command in the console window to update the PATH environment variable. 'javac' is not an internal or external command, nor is it a running program or batch file. Run the "Command Control Character" program and execute the following commands:
Run the installer and follow the on-screen instructions to complete the installation of JDK 6.