This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Java in General and the fly likes restarting java application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "restarting java application" Watch "restarting java application" New topic

restarting java application

bryan lim
Ranch Hand

Joined: Dec 26, 2008
Posts: 140
is there a way to restart my java application from error recovery.

Campbell Ritchie

Joined: Oct 13, 2005
Posts: 36478
Do you mean Exception handling, or something different?
bryan lim
Ranch Hand

Joined: Dec 26, 2008
Posts: 140
when there is error, i want to prompt the user to restart the application. but how can i make the java application restart?

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 39547
Why does the app need to be restarted? What kind of error is this that can't be recovered from while the app is running?

Ping & DNS - updated with new look and Ping home screen widget
Miklos Szeles
Ranch Hand

Joined: Oct 21, 2008
Posts: 142
You can create a starter application which has only two task. Starts your application and restarts it whenever it exit with some error code.
It is sorta covered in the JavaRanch Style Guide.
subject: restarting java application
Similar Threads
main method
Getting database connection failed
Session Time out
Print pdf file without opening.
Not serializable Exception or No Data to read from socket