问题
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