Forums Register Login

Command line JNLP with App parameters

+Pie Number of slices to send: Send
Hi,

I want to call a JNLP file through JWS using command line. I'm wondering whether it is possible to pass application parameters in the command line cause those going to be dynamic.
My command line entry will looks similar to "c:\javaws http:\\xxx.xxx.xxx\Test.jnlp".
If its not possible, I'm thinking of passing a sys property value as -J-Dxxxx=yyyy. But it would be nice if I can pass app parameters.

Thanks,
Indi
+Pie Number of slices to send: Send
What's wrong with putting the application parameters in the normal place in the JNLP file?
+Pie Number of slices to send: Send
In this case, params are going to be dynamic. so i want to pass different values each time.
+Pie Number of slices to send: Send
What's wrong with generating a new JNLP file containing those parameters each time?
+Pie Number of slices to send: Send
my plan is to keep the JNLP file in webserver. Let JWS to do what is suppose to do from deployment prospective. But pass dynamic parameters to the application by the “caller”, so I don’t need to dynamically create the JNLP each time.

Thanks Indi
+Pie Number of slices to send: Send
Okay. Then the command-line parameters will come from the web server's version of the JNLP file, since that's how JNLP files work. It follows from that design feature that the command-line parameters won't come from anywhere else.

Therefore if you want to pass in information which varies from one run to the next, but you want to use the same JNLP file for each of those runs, it follows that you can't use command-line parameters.
Goodbye moon men. Hello tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 4881 times.
Similar Threads
Pros and cons of javawebstart
Parameters in Java task
run dos window in minimized mode
character increment from the command line
OutOfBoundsException problem
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 02:05:23.