Unable to download jre for 1.5 when coming from a machine with 1.4.2_08
843802Jun 2 2005 — edited Oct 30 2005Essentially the issue is that when coming from machine that has JRE 1.4.2 installed on the machine. I am unable to figure out anyway to auto download the j2se 1.5+.
This is a big issue since this is the most common setup for clients and I dont want to have to send them through suns long and drawn ou t process to download the JRE. My users can autodownload the jre fine if they dont have any JREs , however not with 1.4.2. (certain sub-versions) .
I was using a dynamic jnlp (generated via php), however there was a bug that says that for 1.4 you cannot have a "?" in the jnlp href so I have switched to using a static jnlp. If you dont you will get an i/o excpetion with 1.4.
Also 1.4 cannot handle jnlp spec 1.5 , so I use jnlp spec 1.0+ and j2se version 1.5+, this was working previously with some earlier jres in 1.4.2 however is not working with .1.4.2_08.
I had posted a similar issue to this at this thread. Someone gave me an approach that was working however this is no longer working
http://forum.java.sun.com/thread.jspa?forumID=38&threadID=592749
Here is a snippet from the jnlp.
<jnlp spec="1.0+" codebase="XXXX" href="0000000002/XXX.jnlp">
<information>
<title>XXXX</title>
<vendor>XXXX</vendor>
<homepage href="help.html"/>
<description>XXXX</description>
<description kind="short">A demo of the capabilities of the App</description>
<icon href="0000000002/phoneIcon.gif" />
<icon kind="splash" href="0000000002/splash.jpeg" width="397" height="140"/>
<shortcut online="true">
<desktop/>
<menu submenu="Applications"/>
</shortcut>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.5+" href="http://java.sun.com/products/autodl/j2se"/>
......
etc.
Now here is what happens is the Java Web Start 1.4.2_08 process goes into an infinte loop it appears ( it doesnt lock up)The window says
J2RE 1.5 Installer starting .... and then never comes back. If I hit cancel this is the exception print out I get (notice this is Sun's autodownload jnlp not my jnlp)
JNLPException[category: Launch File Error : Exception: null : LaunchDesc:
<jnlp spec="1.0+" codebase="http://java.sun.com/webapps/jawsautodl/AutoDL/j2se/">
<information>
<title>J2RE 1.5.0_02 Installer</title>
<vendor>Sun Microsystems, Inc.</vendor>
<homepage href="null"/>
<description></description>
<description kind="short"></description>
<description kind="one-line"></description>
<description kind="tooltip"></description>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se initial-heap-size="-1" max-heap-size="-1" href="http://java.sun.com/products/autodl/j2se" version="1.3+"/>
<jar href="http://java.sun.com/webapps/jawsautodl/AutoDL/j2se/javaws-1_0_1-j2re-1_5_0_02-inst-windows-i586.jar" download="lazy" main="false"/>
<jar href="http://java.sun.com/webapps/jawsautodl/AutoDL/j2se/javaws-1_0_1-j2re-1_5_0_02-data-windows-i586.jar" download="lazy" main="false"/>
<property name="javaVersion" value="1.5.0_02"/>
<property name="platformVersion" value="1.5"/>
<property name="installerLocation" value="javaws-1_0_1-j2re-1_5_0_02-data-windows-i586.jar"/>
<property name="installerEntry" value="jre.dat"/>
<property name="licenseEntry" value="LICENSE"/>
<property name="lib" value="j2re-installer"/>
<property name="msvcrt.versionMS" value="60000"/>
<property name="msvcrt.versionLS" value="20910000"/>
<property name="execString" value="{0} {1}"/>
<property name="javaPath" value="bin\javaw.exe"/>
<property name="verbose" value="true"/>
<property name="hopper" value="true"/>
<property name="isWindowsInstall" value="true"/>
<jar href="http://java.sun.com/webapps/jawsautodl/AutoDL/j2se/javaws-1_0_1-j2re-1_5_0_02-native-windows-i586.jar" download="eager" main="false"/>
</resources>
<installer-desc main-class="com.sun.webstart.installers.Main"/>
</jnlp> ]
at com.sun.javaws.Launcher.executeInstallers(Unknown Source)
at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
This has to be a basic issue , I hope someone can tell me that for the most common case of users I have , I dont have to tell them to go through sun's arduous donwload jre pages (which had a nice java script page blocking error yesterday due to a survey that was put up, I have confirmed that fixed today and that is not the cause of my problem). I can also tell them to go into control panel for the java plug in and select update now . However this is ridiculous. Someone must have solved this problem???