Before configuring EditPlus is to install and debug the Java operating environment first, then enter the EditPlus, from the menu "tools"; "Configure User Tools ..." Enter user tool settings, select "Group 1" in "Groups and Tools Entries", click the "group name ..." button on the right side of the panel, "Modify the text Group1" to "Java compiler", click the "Add Tool" button, select the application,
Then you modify the attributes:
1. Add Compile function
The contents of the menu text are modified to "Javac", and the command selects the compile-time Javac.exe in the bin directory after the JDK is installed, and my JDK installation path is "C:Program filesjdkj2sdk1.4.2_08", then this path is "C: ProgramFilesJavajdk1.5.0 Injavac.exe ";
"Parameters" select "FileName", which is displayed as "$ (filename)";
"Initial directory" select "File directory", display as "$ (filedir)", select the Capture output check box
2. Add Executive function
The content in the menu text is changed to "Java";
"Command" Select the compiler Java.exe in the bin directory after installing the JDK, the path is "C:Program FilesJavajdk1.5.0 injava.exe";
"Parameter" select "FileName without extension", which is displayed as "$ (filenamenoext)";
"Initial directory" select "File directory", display as "$ (filedir)"; Do not select the Capture output check box. Otherwise, the command console is not ejected.
This completes the basic setup of EditPlus, can write a Java program to debug, compile by ctrl+1, use ctrl+2 to run the program, error prompts will be displayed in the Output window, double-click a line of error messages, EditPlus will automatically locate the error line, how. A simple Java IDE interface appears.
I'm going to save you the Java code you wrote.