Java Subime Text Compile and Run (Build)

Goto Tools->Build System->New Build System
and paste following code in the file.
Then save it as 'java' or any name you like.
    {
    "cmd": ["runJava.bat", "$file"],
    "shell":true,
    "working_dir":"$file_path",
    "selector":"source.java"
    }
Now create a new file name and place the 'main' function inside a class named 'test' and save the file as 'test.java'. You can use any name instead of 'test',  just make sure the class and file name are same.

Comment or message me if you need further help.
Thanks.

Comments