Sublime Forum

Error after changes to java.sublime-build

#1

Hi,

I was messing around with the java.sublime-build in the Java package for ST2 on OSX following some instructions online for compiling and running Java in ST2.

I couldn’t make the code run without errors, so tried to edit the java.sublime-build file to what it was originally

{ "cmd": "javac", "$file"], "file_regex": "^(...*?):([0-9]*):?([0-9]*)", "selector": "source.java" }

However, I get an error when trying to build Java code now,

(file path to the .java file): error: class, interface, or enum expected
“cmd”: “python”, “-u”, “$file”],
^
1 error
[Finished in 0.5s with exit code 1]

Is that original .sublime-build contents incorrect somehow? Could use some help settling this mess!

Thanks!

0 Likes