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.
Build: NetBeans IDE 4.0 RC2 (Build 200412011810) JDK version: build 1.5.0-b64 Observed Behavior: run window doesn't wait for readLine() while reading from System.in. Expected Behavior: run window to wait for readLine() and then print what was typed in. --- Test Code ---- package test; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class SystemInTest { public static void main(String[] args) { try { System.out.print("Enter data: "); String s = (new BufferedReader(new InputStreamReader(System.in))).readLine(); System.out.println(s); } catch (IOException ex) { ex.printStackTrace(); } } }
Known issue, problem of Ant tool itself. *** This issue has been marked as a duplicate of 47708 ***