Sublime Text 2 - 编译java代码错误

时间:2013-03-13 14:30:26

标签: java sublimetext2 sublimetext

我准备我的Sublime Text来编译带有教程http://www.compilr.org/compile-and-run-java-programs/的Java,当我点击ctrl + b时,我得到类似的东西:

[Error 2] The system cannot find the file specified
[cmd:  [u'runJava.bat', u'C:\\Users\\xx\\Desktop\\Test.java']]
[dir:  C:\Users\xx\Desktop]
[path: ?C:\Program Files\Java\jdk1.7.0_13\bin]
[Finished]

它是.bat但它仍然不起作用。我的JavaC.sublime-build文件是:

{
    "cmd": ["runJava.bat", "$file"],
    "file_regex": "^(...*?):([0-9]*):?([0-9]*)",
    "selector": "source.java",
    "encoding": "ISO-8859-2"
}

我在Windows 8上。

0 个答案:

没有答案