Compile and run Java or C/C++ files in EditPlus

上一篇 / 下一篇  2007-07-05 10:21:00

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)

TAG: EditPlus

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

关于作者

  网站首页 | 广告联系 | 博客 | 站点地图 | 软件下载 | 杂志 | 镜像 | 会员卡申请或激活
梦飞网 www.Mxfy.com 粤ICP备05076418号
Copyright © 2002-2008 Mxfy Studio 版权所有 梦飞工作室
110网上报警