Compiling/executing Java on Sublime Text 2 works fine except that it cannot read user input
Posted
by
meiryo
on Super User
See other posts from Super User
or by meiryo
Published on 2012-08-09T16:20:23Z
Indexed on
2012/11/07
5:04 UTC
Read the original article
Hit count: 252
java
|sublime-text-2
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": "source.java"
}
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?
Thanks.
© Super User or respective owner