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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查找系统属性 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.