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.

[602 byte] By [SiddharthKara] at [2007-11-26 22:41:16]
# 1
hi,you can use System input stream to read data from command line..Surya
Surya_INDa at 2007-7-10 11:56:03 > top of Java-index,Java Essentials,Java Programming...
# 2
> am building a server side application that needs to restarted periodically.The OS has certainly a utility to periodically schedule an application (cron, at, scheduled tasks...)
BIJ001a at 2007-7-10 11:56:03 > top of Java-index,Java Essentials,Java Programming...