Sublime配置java运行环境
Sublime Text 3配置java运行环境,附上Sublime Text 3注册码
1、安装jdk,设置环境变量
2、修改D:\Sublime Text 3\Packages\Java.sublime-package
打开压缩包Java.sublime-package
找到JavaC.sublime-build文件,并打开
修改内容:
{
"cmd": ["javac","-encoding","UTF-8","-d",".","$file", "&&", "java", "$file_base_name"],
"working_dir": "$file_path",
"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
"selector": "source.java",
"shell": true,
"encoding":"cp936"
}
3、注意点
编码最好统一成utf-8,项目编码、运行编码
cp936为了保证在sublime控制台显示正常
"-d","." :为了能够找到编译后的class文件
working_dir:定位到执行Java的路径
4、注册码
Member J2TeaM
Single User License
EA7E-1011316
D7DA350E 1B8B0760 972F8B60 F3E64036
B9B4E234 F356F38F 0AD1E3B7 0E9C5FAD
FA0A2ABE 25F65BD8 D51458E5 3923CE80
87428428 79079A01 AA69F319 A1AF29A4
A684C2DC 0B1583D4 19CBD290 217618CD
5653E0A0 BACE3948 BB2EE45E 422D2C87
DD9AF44B 99C49590 D2DBDEE1 75860FD2
8C8BB2AD B2ECE5A4 EFC08AF2 25A9B864