Whenever I try to run my program that tries to get the current console object, it throws an IOException. Is there some way I can read input from the Eclipse console? Here’s my code, if it helps.
public static void main(String[] arguments) throws IOException {
Console c = System.console();
if (c == null) {
System.err.println("No console.");
System.exit(1);
}
Thanks.