Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Java application can not exit and back to system prompt

Status
Not open for further replies.

SeanXing

Vendor
Mar 30, 2003
3
CN

My java application runs well and the log file descript that the jobs completed successfully.

but in the application can not return to the LINUX system prompt.

I really confused by it, and this not happend every time when I run my application, is there anyone who met this problem befor?!

any idea, thanks

 
Sounds like you have a thread that isn't finishing. Are you using a graphical front end, and if so are you calling System.exit(1); when all the work is complete?
 
If you're using a JFrame, you might also make sure you're setting the action to take when the close (X) button on the title bar is clicked:

this.setDefaultCloseOperation( EXIT_ON_CLOSE );
"When you have eliminated the impossible, whatever remains, however
improbable, must be the truth." ~ Arthur Conan Doyle
 

Thanks for your help

but my application is not a GUI application.

and it can work well on other platform, the application is good without the above programming defect because it can work properly on onther machine,
but when sometime this happen, it will last until I reinstall my system.

any idea, thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top