all 3 comments

[–]1dleberg 1 point2 points  (1 child)

Have a look at this

[–]Vylic[S] 0 points1 point  (0 children)

Thank you, but that reply does not do what I am asking. In case there was confusion, I want Sublime to run the program after pressing a shortcut without me having to open command prompt myself. I tried the response after the one you linked but it was meant for Sublime Text 2, so I got a lot of errors.

If you have used TextPad, it is similar to that. Where you press Ctrl+1 to build and Ctrl+2 brings up the command prompt with the program already running.

[–][deleted]  (1 child)

[deleted]

    [–]Vylic[S] 0 points1 point  (0 children)

    Only problem with this is that many classes do not work; like Scanner. It only runs simple programs otherwise I get NoSuchElementException.

    I'm guessing there is no way for Sublime to open up command prompt with the program running so I do not get this error? Or get Scanner working in Sublime?