title: how to restart java application, remembering its command line arguments
body: <p>I have a java application. It can be started with couple of command line flags. I want to provide  ability "restart" the application by user.</p>
  
  <p>Currently we save the the arguments on  a control file, reads it when restarting the application.   What is the best way to restart the application - how can I retain the command line arguments? </p>