您的位置:梦飞网 » ranfow's blog » 日志
Compile and run Java or C/C++ files in EditPlus
Example 1. Java Compiler
Menu text: Java Compiler
Command: c:\java\bin\javac.exe
Argument: "$(FilePath)"
Initial directory: $(FileDir)
Capture output: ON
Example 2. Turbo C 2.01
Menu text: Turbo C
Command: c:\tc\tcc.exe
Argument: -Ic:\tc\include -Lc:\tc\lib -n$(FileDir) $(FilePath)
Initial directory: c:\tc
Capture output: ON
Example 3. Borland C++ 5.5
Menu text: Borland C
Command: c:\bc\bin\bcc32.exe
Argument: -Ic:\bc\include -Lc:\bc\lib -n$(FileDir) $(FilePath)
Initial directory: c:\bc\bin
Capture output: ON
Example 4. Visual C++
Menu text: Visual C++
Command: c:\msdev\vc98\bin\cl.exe
Argument: "$(FilePath)"
Initial directory: $(FileDir)
Capture output: ON
The above settings must be replaced with the actual path of the Java compiler or C/C++ compiler on your system.
After the setting is completed, you can run the command on 'Tools' menu, and the result will be shown in the Output Window at the bottom. You can also run the tool through the shortcut key (Ctrl + 0-9) or thought the icons on the 'User toolbar'.
To run the compiled Java class file, you can set the options like this:
Menu text: Java
Command: c:\java\bin\java.exe
Argument: $(FileNameNoExt)
Initial directory: $(FileDir)
The 'Command' field should be replaced with the actual path of the Java interpreter.
To run the compiled *.exe file, you can set the options like this:
Menu text: Run
Command: $(FileNameNoExt)
Argument:
Initial directory: $(FileDir)
Menu text: Java Compiler
Command: c:\java\bin\javac.exe
Argument: "$(FilePath)"
Initial directory: $(FileDir)
Capture output: ON
Example 2. Turbo C 2.01
Menu text: Turbo C
Command: c:\tc\tcc.exe
Argument: -Ic:\tc\include -Lc:\tc\lib -n$(FileDir) $(FilePath)
Initial directory: c:\tc
Capture output: ON
Example 3. Borland C++ 5.5
Menu text: Borland C
Command: c:\bc\bin\bcc32.exe
Argument: -Ic:\bc\include -Lc:\bc\lib -n$(FileDir) $(FilePath)
Initial directory: c:\bc\bin
Capture output: ON
Example 4. Visual C++
Menu text: Visual C++
Command: c:\msdev\vc98\bin\cl.exe
Argument: "$(FilePath)"
Initial directory: $(FileDir)
Capture output: ON
The above settings must be replaced with the actual path of the Java compiler or C/C++ compiler on your system.
After the setting is completed, you can run the command on 'Tools' menu, and the result will be shown in the Output Window at the bottom. You can also run the tool through the shortcut key (Ctrl + 0-9) or thought the icons on the 'User toolbar'.
To run the compiled Java class file, you can set the options like this:
Menu text: Java
Command: c:\java\bin\java.exe
Argument: $(FileNameNoExt)
Initial directory: $(FileDir)
The 'Command' field should be replaced with the actual path of the Java interpreter.
To run the compiled *.exe file, you can set the options like this:
Menu text: Run
Command: $(FileNameNoExt)
Argument:
Initial directory: $(FileDir)
TAG: EditPlus

