1 Reply Latest reply: Jul 19, 2012 4:59 PM by 924899 RSS

    JRE 1.6 download shows error

      I'm trying to force my application to use Java 1.6 (1.7 is causing error in the app), so this is my JNLP:
      <jnlp spec="6.0+" codebase="http://app.myself.com/APP/">
          <vendor>Just me</vendor>
          <homepage href="jsp/index.html"/>
          <description kind="short">APP</description>
          <icon href="install/icono2.gif"/>
            <menu submenu="APP"/>
          <java version="1.6" initial-heap-size="512m" max-heap-size="1024m"/>
          <jar href="jnlp/APP.jar"/>
          <jar href="jnlp/Libs.jar"/>
        <application-desc main-class="com.myself.MyClass"/>
      This is the error I'm getting:
      JNLPException[category: Launch File Error : Exception: null : LaunchDesc: 
      <jnlp spec="1.0+" codebase="http://javadl.sun.com/webapps/jawsautodl/AutoDL/j2se/">
          <title>J2RE 1.6.0 Installer</title>
          <vendor>Sun Microsystems, Inc.</vendor>
          <homepage href="null"/>
        <update check="timeout" policy="always"/>
          <java href="http://java.sun.com/products/autodl/j2se" version="1.3+"/>
          <jar href="http://javadl.sun.com/webapps/jawsautodl/AutoDL/j2se/javaws-j2re-inst-w.jar" download="eager" main="false"/>
          <property name="installerLocation" value="jre-6-windows-i586-iftw.exe"/>
          <property name="installerSize" value="370312"/>
          <property name="javaVersion" value="1.6.0"/>
          <property name="platformVersion" value="1.6"/>
          <property name="msvcrt.versionMS" value="60000"/>
          <property name="msvcrt.versionLS" value="20910000"/>
          <property name="osplatform" value="windows-i586"/>
        <installer-desc main-class="com.sun.webstart.installers.Main"/>
      </jnlp> ]
       at com.sun.javaws.JnlpxArgs.executeInstallers(Unknown Source)
       at com.sun.javaws.Launcher.prepareResources(Unknown Source)
       at com.sun.javaws.Launcher.prepareAllResources(Unknown Source)
       at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
       at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
       at com.sun.javaws.Launcher.launch(Unknown Source)
       at com.sun.javaws.Main.launchApp(Unknown Source)
       at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
       at com.sun.javaws.Main$1.run(Unknown Source)
       at java.lang.Thread.run(Unknown Source)
      In my computer I have Java 1.7 installed, but I want the jnlp to force the download of Java 1.6 to run my app.

      Edited by: pmadridb on Jul 6, 2012 7:27 AM
        • 1. Re: JRE 1.6 download shows error
          I know how you must feel.
          We're experiencing this issue as well.
          With all due respect to Oracle, it seems they totally bastardized webstart with their Java 1.7 release.

          Only some users could download 1.6 without issues. Others got that error.
          1.7 currently makes our app throw SecurityExceptions randomly for some users.
          Always with the template: java.lang.SecurityException: class "<class name>" does not match trust level of other classes in the same package
          And we've done all possible to have this fixed for everyone but to no avail. So since then we figured we'd force the app to run on 1.6 by the jnlp tag as you have it.

          But that TOO thus far has been a failed solution.
          It also doesn't seem like Oracle intends to keep this (failed) solution as a viable solution...

          Remember how you could install different JRE versions on a system and use whichever you wanted?
          Well since the JRE 7u5 installer, I saw just last week that it says "...Installing Java 7 Update 05 will uninstall the latest Java 6 from your system"!

          I have created a Jira for our prevalent Java 7 issue (i.e the SecurityExceptions), but you may want to do so for this one, if this is the route you want to go.
          Though I would suggest you focus more of your energy now on trying to fix up your app for Java 7.

          Cheers and keep the thread updated on any progress or decisions made.