I love Sublime Text 2 and want to use it as my main IDE, but I can’t compile and run Java code all without leaving the editor.
Actually, I can. I can compile and run Java via JavaC.sublime-build, after making a few modifications to it:
{
"shell": "true",
"cmd": "javac", "$file", "&", "java", "$file_base_name"],
"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
"selector": "source.java"
}
…But the problem is that if the program asks for user input, it will just give an error. So I have to use Java from the command line to get any program with user input to work.
Here is an example of the problem: