Auto-Launch JNLP on click

这一生的挚爱 提交于 2019-12-18 05:37:11

问题


How do I get a JNLP file to auto-launch on click? (as opposed to clicking save or open when clicked) Is this some type of MIME association that the browser must first recognize?


回答1:


There is a server configuration file that specifies MIME or content type by file extension. For JNLP, it should be application/x-java-jnlp-file.




回答2:


I think the other answer is outdated as of today.

Try changing your link from http:// or https:// to jnlp:// or jnlps://.

So your url would look something like this: jnlp://your.server/path/yourjnlp.jnlp

Caveat: For me, typing this in the Chrome URL doesn't work. It needs to actually be a link inside the page that gets clicked. There may also be a Windows requirement but I haven't confirmed that.

See this for more info: https://bugs.chromium.org/p/chromium/issues/detail?id=518170



来源:https://stackoverflow.com/questions/7556986/auto-launch-jnlp-on-click

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