我准备我的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上。