从启动的程序中获取 JNLP 文件名
是否可以通过 Web Start java 程序启动来确定 JNLP 文件名?
Is it possible to determine JNLP file name from the launched thru Web Start java program?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
目前,我知道如何做到这一点的唯一方法是添加一个以 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 toBasicService.getCodeBase()
to construct the URL to the JNLP file.Why do you need this information?
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 aproperty
and have each app. reach back to the server (to an 'app. phone home' page) once it is started.