Read Command from Command Line
Hi.
I am starting my application using the following command at the command line: "java -jar convert.jar config.txt". Is there any way for me to read the "convert.jar" portion of the command.
I am building a server side application that needs to restarted periodically. I get the invocation directory using System.getProperty("user.dir"). I need to know the name of the command so that I can execute something line
"java -jar" + strCommand + System.getProperty("user.dir"), where strCommand is the command "convert.jar" or "/path/to/convert.jar"
Thanks,
Siddharth.

