Posted by aoberthuer
on October 28, 2005 at 3:06 PM PDT
I browsed this forum and did not find a satisfying answer to the above problem. We are cooperating with a company, that wants to start our Java application by issuing a command line command along with some parameters.
Our application is deployed using Java Web Start and using a jsp is not feasible. The question is, how do I get my application to recognize the commands issued by our partner?
They would prefer to issue something like: launcher.exe -cmd1 -cmd2 -cmd3. The only thing I can think of is to write a small Java program, invoke a call to Runtime.exec("start javaws myapp.jnlp") and let my application (which could of course optionally be wrapped into an exe) modify the .jnlp file first. Any better ideas, any problems I do not see?