带参数的 Java Webstart

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1199211/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-29 15:35:58  来源:igfitidea点击:

Java Webstart with parameters

javaparametersappletinitializationjava-web-start

提问by Pierre

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

我可以像使用 <param> 标签配置小程序一样使用一组参数启动Java WebStart应用程序吗?

Thanks

谢谢

回答by tddmonkey

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.

向您展示将参数“-user=bob”和“-pass=8jkaiuasu”传递给应用程序。参数以标准方式获取。

回答by Tim Büthe

Yes, check out the JNLP Tag reference

是的,查看JNLP 标签参考