Java Webstart with parameters

Pierre picture Pierre · Jul 29, 2009 · Viewed 13.8k times · Source

Can I launch a Java WebStart application with a set of parameters just like an applet is configured with the <param> tags ?

Thanks

Answer

tddmonkey picture tddmonkey · Jul 29, 2009

Yeah you can, the following shows an example:

<application-desc main-class="my.main.class">
    <argument>-user=bob</argument>
    <argument>-pass=8jkaiuasu</argument>
</application>

Showing you passing the arguments "-user=bob" and "-pass=8jkaiuasu" to the application. Arguments are picked up in the standard way.