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 run the following interactive console application in the IDE profiler you will see that when the application terminates the profiler remains runing and counting as if the application was still runing. You have to explicitly stop it by pressing the stop (red) button. 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."); } } }
I'm using: NetBeans IDE 4.1 Mobility Pack 4.1 Profiler Milestone 8 (v3) J2SE 5.0 Update 5
In NetBeans IDE 5.0 with Profiler Milestone 9 it works fine, i.e. when the application terminates I get a dialog saying that the application has finished and saying me to press ok to terminate the Java VM.
Right, this bug was fixed in Milestone 9 release.
It's ok in NetBeans Profiler 5.0. Closing it.