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.
If you try to run the following interactive console application in the IDE profiler you will not be able to enter your name. In fact, the application will never terminate as it is waiting for input. import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; public class Main { public static void main(String[] args) { try { System.out.println("What is your name?"); BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); String name = r.readLine(); // should wait here for user input System.out.println("Hello, " + name); } catch (IOException e) { System.err.println("Failed to read from console."); } } } The output is: What is your name? I have NetBeans 4.1RC2 with the Mobility Pack and the Profiler 4.1 M6. If I run the application normally, i.e. not in profile mode, then it works fine.
Reassigning for evaluation.
Accepting
Will fix for M8
Thansk for reporting this problem. I fixed this in M8, the profiler ant task will now behave the same way as regular execution - i.e. the standard Ant output window will be used for profiler app I/O (and the stdin will work).
I verified that it is working in M8.
It had been solved in M8.