EditPlus之Java工具配置

[size=xx-large]--javac工具-----------------------------------------[/size]

[color=blue]1、选择Tools->preferences->User tools->Add Tool->Program

2、参数如下:
Menu text: javac
Command: javac
Argument: $(FileName) 选择文件名
Initial directory: $(FileDir)[/color]

[size=xx-large]--java工具------------------------------------------[/size]

[color=blue]1、选择Tools->preferences->User tools->Add Tool->Program

2、参数如下:
Menu text: java
Command: java
Argument: $(FileNameNoExt) 选择无后缀文件名
Initial directory: $(FileDir)[/color]

[size=xx-large]--ant工具-----------------------------------------------[/size]

[color=blue]1、选择Tools->preferences->User tools->Add Tool->Program

2、参数如下:
Menu text: ant_compile
Command: ant
Argument: -f $(FileDir)/build.xml compile

3、build.xml[/color]
<?xml version="1.0"?>
<project name="struts" basedir="." default="">
<path id="classpath">
<fileset dir="lib">
<include name="*.jar"/>
</fileset>
<pathelement path="."/>
</path>

<target name="compile" description="Compile all source code">
<javac destdir="classes" debug="true"
deprecation="false" optimize="false" failonerror="true">
<src path="src"/>
<classpath refid="classpath"/>
</javac>
</target>
</project>



[color=red]
注意:根据快捷键就可以编译和运行java程序[/color]
阅读更多
想对作者说点什么?

博主推荐

换一批

没有更多推荐了,返回首页