Java Webstart with parameters

前端 未结 2 1979
我寻月下人不归
我寻月下人不归 2021-01-04 12:26

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

Thanks

相关标签:
2条回答
  • 2021-01-04 12:47

    Yes, check out the JNLP Tag reference

    0 讨论(0)
  • 2021-01-04 13:01

    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.

    0 讨论(0)
提交回复
热议问题