Originally posted by Karthikeyan Chandrasekaran:
Hi All,
I have a swing GUI from which i am calling a batch file using RunTime.exec() . That batch file will kill and restart the GUI. But when it kills the GUI it itself got killed. So GUI is not coming up. Please let me know how to overcome this issue?
Please share the code of Batch file so that we can check whether what you have coded in that program.
what do you mean by "restart the GUI" does that means starting the application from where it was called or restart the GUI.
If you want to restart the GUI from the scratch again then you have to simply write a line
java GUIApplicationClass
else otherwise let us see the code first.