I am having trouble opening * .jnlp extensions using Internet Explorer. The extension opens properly in Chrome and Firefox, which allows me to assume that this is a problem with IE and possibly with setting up the web server / JNLP. In particular, Internet explorer opens the * .jnlp file as a * .xml script instead of downloading the file or opening it with java web start.
Example:
<?xml version="1.0" encoding="utf-8" ?> - - <jnlp spec="1.7+" codebase="http://foo:8080/bar" href="bar.jnlp"> - <information> <title>FOO</title> <vendor>FOO Inc.</vendor> <description>FOO BAR System</description> - <shortcut online="false"> <desktop /> <menu submenu="FOO" /> </shortcut> </information> - <security> <all-permissions /> </security> - <resources> <j2se version="1.7+" java-vm-args="-client" /> ... </resources> <application-desc main-class="FooBarMainApp" /> </jnlp>
I tried the following βfixesβ / workarounds to no avail:
- Run IE as Administrator
- Adding URLs to Compatibility Mode
- Changing JAVA settings to "Always allow JNLP / MIME"
- Reset Advanced Internet Explorer Settings
- Change the settings for the MIME extension in the web.xml file of the web server.
- Change IE setting to always allow file downloads
Update: I was able to fix this problem with a workaround that I posted below. However, I am looking for a more permanent solution if anyone has any suggestions. In particular, I am looking for a way to fix this on the business / server side, if at all possible. It would be nice if users did not need to change any settings on their side (otherwise, switching from IE to another browser).
MIME-Mapping in web.xml:
<mime-mapping> <extension>jnlp</extension> <mime-type>application/x-java-jnlp-file</mime-type> </mime-mapping>
source share