- 0
- 0
- 约小于1千字
- 约 3页
- 2023-04-25 发布于上海
- 举报
用 EditPlus 搭建简易的 java 开发环境
一、修改字体
进入 tools 》preferences》font,修改成大点的字体,小字累眼睛
二、加入 Java 工具
添加 Java 编译工具。在 tools 》 configure user tools 》Add tool 》Program,在 menu test 中输入“java 编译”,command 输入“javac”,Argument 选择$(FilePath),Initial directory 选择
$(FileDir),再选上 Capture output。点击 Apply 就 ok 了。
添加 Java 解释器。在 tools 》 configure user tools 》Add tool 》Program,在 menu test 中输入“java 运行”,command 输入“java”,Argument 选择$(FileNameNoExt),Initial directory选择$(FileDir)。点击 Apply 就 ok 了。
添加当前文件目录下的 Dos 窗口。在 tools 》 configure user tools 》Add tool 》Program, 在 menu test 中输入“cmd”,command 输入“cmd”,Initial directory 选择$(FileDir)。 点击 Apply 就 ok 了。
实现的效果就是:用 editplus 编辑一个 Java 源文件,然后按 CTRL + 1,编译;CTRL + 2 ,
运行;当一个文件有多个 class,你想运行其中的某一个,CTRL + 3,跳出 cmd 窗口,已经指向当前目录了,然后手工输入就可以了。
三、修改 Java 文件模板
原创力文档

文档评论(0)