从启动的程序中获取 JNLP 文件名

发布于 2024-11-03 15:29:56 字数 46 浏览 4 评论 0原文

是否可以通过 Web Start java 程序启动来确定 JNLP 文件名?

Is it possible to determine JNLP file name from the launched thru Web Start java program?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

无畏 2024-11-10 15:29:56
System.getProperty("jnlpx.origFilenameArg")
System.getProperty("jnlpx.origFilenameArg")
怎言笑 2024-11-10 15:29:56

目前,我知道如何做到这一点的唯一方法是添加一个以 JNLP href 作为值的属性。应用程序可以将其添加到 BasicService.getCodeBase() 中以构造 JNLP 文件的 URL。


为什么需要这些信息?

这是统计需求所必需的。

如果您想确定 JNLP 上的命中率,这些命中率将在服务器日志中显示。
如果需要确定“成功启动的次数”,请将 HREF 作为 property 添加到 JNLP 中,并让每个应用程序都包含在 JNLP 中。启动后返回服务器(返回“app.phone 主页”页面)。

At he moment, the only way I know how to do that is to add a property with the JNLP href as the value. The application can add that to BasicService.getCodeBase() to construct the URL to the JNLP file.


Why do you need this information?

It's necessary for statistic needs.

If you want to determine hits on the JNLP, those will be revealed in the server logs.
If it is necessary to determine 'number of successful launches', then add the HREF into the JNLP as a property and have each app. reach back to the server (to an 'app. phone home' page) once it is started.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文