This discussion is archived
0 Replies Latest reply: Oct 4, 2012 7:13 AM by 892235 RSS

Javaws 64-bit fails to installer newer JRE  (Java7u6 auto-upgrading to u7)

892235 Newbie
Currently Being Moderated
Hi,

I have a machine with an previous version of java installed (tried with 1.7.0_06).

My Jnlp file is set to automatically download the latest JRE. This works fine if the JRE installed is 32-bit. But if the user has downloaded the x64 bit version (on windows 7), everything works, except when I change the required version spec to 1.7.0_07.


The confirmation dialog to install 1.7.0_07 comes up but fails, as it tries to download and run the 32-bit installer while the javaws is 64-bit. Shouldn't the 64-bit version download a 64-bit version when auto-downloading?

The user is running javaws from the commandline
javaws.exe http://myserver/myapp.jnlp

h3. This is the jnlp file generated by javaws to auto download the JRE
---------
<jnlp codebase="http://javadl.sun.com/webapps/jawsautodl/AutoDL/j2se">
<information>
<title>J2RE 1.7.0_07 Installer</title>
<vendor>Sun Microsystems, Inc.</vendor>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.3+" href="http://java.sun.com/products/autodl/j2se"/>
<jar href="javaws-j2re-inst-w.jar" download="lazy" size="70700"/>
<property name="installerLocation" value="jre-7u7-windows-i586-iftw.exe"/>
<property name="installerSize" value="894952"/>
<property name="javaVersion" value="1.7.0_07"/>
<property name="platformVersion" value="1.7"/>
<property name="msvcrt.versionMS" value="60000"/>
<property name="msvcrt.versionLS" value="20910000"/>
<property name="osplatform" value="windows-i586"/>
</resources>
<installer-desc main-class="com.sun.webstart.installers.Main"/>
</jnlp>
---------


h3. Console output:
----------
Java Web Start 10.6.2.24
Using JRE version 1.7.0_06-b24 Java HotSpot(TM) 64-Bit Server VM
User home directory = C:\Users\myuser
'----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
m: print memory usage
o: trigger logging
p: reload proxy configuration
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
0-5: set trace level to <n>
'----------------------------------------------------
Could not launch from cache. Will try online mode. [Some of required resources are not cached.]
Match: beginTraversal
Match: digest selected JREDesc: JREDesc[version 1.3+, heap=-1--1, args=null, href=http://java.sun.com/products/autodl/j2se, sel=false, null, null], JREInfo: JREInfo for index 0:
platform is: 1.7
product is: 1.7.0_06
location is: http://java.sun.com/products/autodl/j2se
path is: C:\Program Files\Java\jre7\bin\javaw.exe
args is: null
native platform is: Windows, amd64 [ x86_64, 64bit ]
JavaFX runtime is: JavaFX 2.2.0 found at C:\Program Files\Java\jre7\
enabled is: true
registered is: true
system is: true

Match: ignoring maxHeap: -1
Match: ignoring InitHeap: -1
Match: digesting vmargs: null
Match: digested vmargs: [JVMParameters: isSecure: true, args: ]
Match: JVM args after accumulation: [JVMParameters: isSecure: true, args: ]
Match: digest LaunchDesc: null
Match: digest properties: [-DinstallerLocation=jre-7u7-windows-i586-iftw.exe, -DinstallerSize=894952, -DjavaVersion=1.7.0_07, -DplatformVersion=1.7, -Dmsvcrt.versionMS=60000, -Dmsvcrt.versionLS=20910000, -Dosplatform=windows-i586]
Match: JVM args: [JVMParameters: isSecure: false, args: -DinstallerLocation=jre-7u7-windows-i586-iftw.exe -DinstallerSize=894952 -DjavaVersion=1.7.0_07 -DplatformVersion=1.7 -Dmsvcrt.versionMS=60000 -Dmsvcrt.versionLS=20910000 -Dosplatform=windows-i586]
Match: endTraversal ..
Match: JVM args final: -DinstallerLocation=jre-7u7-windows-i586-iftw.exe -DinstallerSize=894952 -DjavaVersion=1.7.0_07 -DplatformVersion=1.7 -Dmsvcrt.versionMS=60000 -Dmsvcrt.versionLS=20910000 -Dosplatform=windows-i586
Match: Running JREInfo Version match: 1.7.0.06 == 1.7.0.06
Match: Running JVM args match the secure subset: have:<> satisfy want:<-DinstallerLocation=jre-7u7-windows-i586-iftw.exe -DinstallerSize=894952 -DjavaVersion=1.7.0_07 -DplatformVersion=1.7 -Dmsvcrt.versionMS=60000 -Dmsvcrt.versionLS=20910000 -Dosplatform=windows-i586>
#### Java Web Start Error:
#### java.lang.UnsatisfiedLinkError: C:\Users\myuser\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\ext\E1349249798698\j2re-installer.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform

----------

h3. My JNLP file
----------

<?xml version="1.0" encoding="UTF-8" ?>
<jnlp spec="6.0.10+" version="1.5-SNAPSHOT.431" href="hello.world.ApplicationStarter.jnlp" codebase="http://myserver/myapp">
<information>
<title>MyApp</title>
<vendor>MyCorp</vendor>
<homepage>http://myserver/myapp</homepage>
<icon href="img/applicationIcon.png" />
<icon href="img/applicationIcon.png" kind="splash" />
<icon href="img/applicationIcon.png" kind="shortcut" />
</information>
<resources>
<j2se version="1.7*&1.7.0_07+" href="http://java.sun.com/products/autodl/j2se" />
<jar href="myapp.jar" main="true" version="1.5-SNAPSHOT.431"/>
<property name="jnlp.versionEnabled" value="true"/>
</resources>
<application-desc main-class="hello.world.ApplicationStarter">
<argument>http://myserver/myapp</argument>
</application-desc>
<security>
<all-permissions />
</security>
<update check="always" />
</jnlp>

----------

Edited by: 889232 on Oct 4, 2012 7:13 AM

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points