This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
In both NetBeans 5.5.1 and 6.0 M10, java.io.Console is not supported. However, the following program compiles and runs successfully from the command using javac/java from both JDK 1.7.0b16 and JDK 1.6.0_02b5: import java.io.Console; public class AppConsole { public static void main(final String[] args) { final Console console = System.console(); final String input = console.readLine("Please your name: "); System.out.printf("Hallo [%s]\n", input); } } I get Exception in thread "main" java.lang.NullPointerException for the console.readLine(*) line.
reassigning to ant for evaluation. For some reason it doesn't work even if I run on the command line through ant ("ant run")
*** This issue has been marked as a duplicate of 68770 ***