Running method: First click "Tools" - "User Tools" - "Tool Group" - "OK" button; then click "Add Tool" and select "Application" in the pop-up menu; finally command Select java.exe under bin in the jdk installation directory, select "file name (excluding extension)" as the parameter, and set the initial directory to "file directory".
The operating environment of this tutorial: windows7 system, java10 version, Dell G3 computer.
The method of compiling and running Java with Editplus is as follows:
First start EduitPlus and perform the following operations: (Tools"-->"Configure user tools...-->Group name. ..) and rename Tool 1 in the picture below to "Java" as shown in the picture below:
Next click "Add Tool", and then click "Apply" Program", as shown in the figure below:
Then select javac.exe in bin in the jdk installation directory. Among them, the parameter selects "file name", that is, $(FileName). Select "File Directory" as the initial directory, which is $(FileDir). You can add the compilation function, as shown in the figure below:
##Next, you need to add the execution function, and you need to do the following: (Add Tool>>”--> "Application-->Execute) In addition to the above operations, this time the command selects java.exe under bin in the jdk installation directory, and the parameter selects "File name (excluding extension)", that is, $(FileNameNoExt). Select "File Directory" as the initial directory, which is $(FileDir). As shown in the picture below:Related free learning recommendations: java basic tutorial
The above is the detailed content of How to run java program in editplus. For more information, please follow other related articles on the PHP Chinese website!