How to restart the application from itself
I create a batch file with a new VM-Param:
java -Xmx256m app.jar
if there is not enought memory.
Is there any possibility to shut down the running app.jar, like System.exit(0) and execute this batch file, so that the user won't care about it and don't have to do it manually?
Like Firefox restart itself after upgrade.
Thanks in advance.

