发布于 2024-12-18 18:09:53 字数 8 浏览 2 评论 0原文

continue

Background

I've made a Java application that is started by downloading a dynamically generated .jnlp file. What the application does is not really relevant, but its a screenrecorder. The user will download and start several (maybe hundreds) of these applications over time.

Problem

When the program ends I would like to delete the jnlp file that started the application. The point of the program is that nothing should be installed and nothing left behind. That includes the jnlp filed that one download to start it.

Question

Is there a way to find the jnlp file so i can delete it? (Preferably a File object)

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

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

发布评论

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

评论(1

月野兔 2024-12-25 18:09:53

查找系统属性 var jnlpx.origFilenameArg 并将其从 java 应用程序中删除。

这适用于 Java 6 update 26。

Look up system property var jnlpx.origFilenameArg and delete it from the java application.

This worked on Java 6 update 26.

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