wood burning stoves 2.0*
The moose likes Java in General and the fly likes java.exe is still running Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "java.exe is still running" Watch "java.exe is still running" New topic

java.exe is still running

vicky bawge
Ranch Hand

Joined: Sep 04, 2001
Posts: 34
i start an application by java Test In Test.java main() i invoke the constructor which in turn displays a splashscreen and a dialog. if the user hits Quit on the dialogue, i dispose the splash screen and return from the constructor which also causes main to return.
But in the task manager java.exe is still running. Also the console window thats started after exeecuting java Test is still there.
Can you please tell me whats going wrong.
John Dale
Ranch Hand

Joined: Feb 22, 2001
Posts: 399
When you display window using AWT (or Swing), one or more (shared) threads are started to dispatch events, etc. These don't go away when you dispose() of the window(s). That's why Swing applications usually stop by exiting the virtual machine using System.exit().
vicky bawge
Ranch Hand

Joined: Sep 04, 2001
Posts: 34
Hi John,
Yeah that works.
Thanks a lot,
I agree. Here's the link: http://aspose.com/file-tools
subject: java.exe is still running
Similar Threads
Why main is declared as static?
On running external programs in java
Overiding / Initialization - Question from mock
What exactly is Java.exe??
Calling another class