I want to compile and run a Java program in the terminal through Sublime Text 3 instead of using an IDE like Eclipse. I have edited the Java.sublime-build
file to do this, but it is not working. When I launch the build system, gnome-terminal opens for a while and then crashes.
Here is the .sublime-build
I edited:
{
"cmd": ["gnome-terminal -x bash -c\"javac ${file_name} && java ${file_base_name}; exec bash\""],
"selector": "source.java",
"shell":true,
"working_dir": "$file_path"
}
What other changes do I have to make to get this to compile Java programs for me?