Browser downloads jnlp on Java Web Start. How to prevent it?

大憨熊 提交于 2020-01-24 12:03:23

问题


When I click on a link to "web start" my java application, browser downloads jnlp file which I should execute afterwards. Is there any way to force browser to execute jnlp right after the download completes, or event better, to make the whole process transparent, so user just confirms that he wants to launch the application? Thanks.


回答1:


All you can do is provide the correct MIME type which in a standard setup makes the browser automatically open the file with Java WebStart.

Apart from that you cannot control whether the file is opened or not. Most browsers even have an option which prevents automatically opening downloaded files.



来源:https://stackoverflow.com/questions/3410201/browser-downloads-jnlp-on-java-web-start-how-to-prevent-it

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!