title: Show Java program output on cmd after compiled by Sublime text 3
body: <p>I'm using Sublime Text 3 for writing and compiling my java programs but the output on Sublime console isn't helpful because we can't give inputs. I had found the sublime build code for C and C++ to show the output on cmd but haven't succeeded in Java. This is what I've written in my java.sublime-build file.</p>
  
  <pre><code>{
      "cmd": ["javac", "$file_name"],
      "file_regex": "^(...*?):([0-9]*):?([0-9]*)",
  
      "variants": [
  
          {
              "cmd": ["start", "cmd", "/k", "java", "$file_base_name"],
              "shell": true,
              "name": "Run"
          }
      ]
  }
  </code></pre>
  
  <p>When I try to run the cmd opens but it isn't able to compile the java file and says, "Could not find or locate the main class". I want to run the program that I've just compiled in a cmd window (not in the Sublime console) What should I add to that command? Thank you.</p>