Possible Duplicate:
Any way to “reboot” the JVM?
Is there any option to restart currently executing .jar(a complete project),by code from inside that program
Possible Duplicate:
Any way to “reboot” the JVM?
Is there any option to restart currently executing .jar(a complete project),by code from inside that program
You can invoke using Runtime.getRuntime().exec()
java -jar yourJar.jar
and immediately you can invoke
System.exit(0);
So launching new instance and stopping current