JDK-6408620 : Vista: Java Web Start JRE auto-download not working
  • Type: Bug
  • Component: deploy
  • Sub-Component: webstart
  • Affected Version: 6
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_vista
  • CPU: x86
  • Submitted: 2006-04-04
  • Updated: 2010-04-02
  • Resolved: 2006-04-08
Related Reports
Duplicate :  
Description
Java web start JRE auto-download does not work in vista.  The JNLP jre installer can be download and launched, but when we do a Runtime.exec on the jre installer itself, the create process failed:  (even a standalone java application that do a Runtime.exec on the installer fail too)

execute !C:\jre59234.dat /s /v"/qn WEBSTARTICON=1 INSTALLDIR=\"C:\Program Files\
Java\j2re1.4.2_07\\""!

java.io.IOException: CreateProcess: C:\jre59234.dat /s /v"/qn WEBSTARTICON=1 INS
TALLDIR=\"C:\Program Files\Java\j2re1.4.2_07\\"" error=740
        at java.lang.ProcessImpl.create(Native Method)
        at java.lang.ProcessImpl.<init>(Unknown Source)
        at java.lang.ProcessImpl.start(Unknown Source)
        at java.lang.ProcessBuilder.start(Unknown Source)
        at java.lang.Runtime.exec(Unknown Source)
        at java.lang.Runtime.exec(Unknown Source)
        at java.lang.Runtime.exec(Unknown Source)
        at test.execute(test.java:12)
        at test.main(test.java:6)

Comments
EVALUATION The error code 740 is probably returned by CreateProcess WINAPI. 740 code: ERROR_ELEVATION_REQUIRED: The requested operation requires elevation. I guess we cannot invoke any exe we want in Vista with medium integrity.
06-04-2006

EVALUATION at firsts I thought it's because of the file name we use: jre59234.dat since you cannot really run that in Vista directly (double click on a .dat file won't run it). But then even if I changed it to jre59234.exe (with this you can now launch in Vista), runtime.exec on it still fail in Vista. More investigation needed. *** (#1 of 1): [ UNSAVED ] ###@###.###
04-04-2006