Search code examples
macosjavajnlpjava-web-start

Webstart running the wrong jre version on OSX


I am running a jnlp in OSX 10.8.2 with jre the jre version 1.7.0_11 and jnlp tag is set to run in 1.6 as:

<j2se version="1.6" href="http://java.sun.com/products/autodl/j2se">

or

<j2se version="1.6*" ...>

However, when the jnlp runs shows the following in the console: Java Web Start 10.11.2.21 Using JRE version 1.7.0_11-b21 Java HotSpot(TM) 64-Bit Server

When I run the same jnlp file in windows using jre 1.7 works fine, it loads with jre 1.7 and then download jre 1.6 and run on it.

Any ideas?


Solution

  • Now, they told me they need java 1.7 as default.

    So, I found that installing JDK 1.7 instead of JRE, it was fixed. I can have both versions and my jnlp is using jre 1.6 to run.

    http://www.oracle.com/technetwork/java/javase/downloads/index.html

    And then I had to run the follwoing commands from http://support.apple.com/kb/HT5559:

    sudo mkdir -p /Library/Internet\ Plug-Ins/disabled

    sudo mv /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin /Library/Internet\ Plug-Ins/disabled

    sudo ln -sf /System/Library/Java/Support/Deploy.bundle/Contents/Resources/JavaPlugin2_NPAPI.plugin /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin

    sudo ln -sf /System/Library/Frameworks/JavaVM.framework/Commands/javaws /usr/bin/javaws

    After run this, the java applet plug-in starts to work in Chrome and I can handle all versions of Java from Application/Utilities/JavaPreferences