Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am a student learning Java and I want to compile and run some simple Java on ST2. Also Eclipse is very slow on my laptop.

Here is my JavaC.sublime-build file so far:

    "cmd": ["sublimejavaexec.bat", "$file"],
    "file_regex": "^(...*?):([0-9]*):?([0-9]*)",
    "selector": ""

So far it can run code that does not require user input. However when I have something that uses the Java input scanner it either skips through or generates an error.

Can anyone suggest a solution such as a plug-in or if ST2 actually has this kind of feature on its console?


share|improve this question

just create a javacr bash/bat with something like

javac $
java $1

and inside your JavaC.sublime-build:

  "file_regex": "^(...?):([0-9]):?([0-9]*)", 
  "selector": "" 
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.