JDK-8129749 : JWS app won't start if JDK 1.4.2 installled and deployment.prop doesn't exist
  • Type: Bug
  • Component: deploy
  • Sub-Component: webstart
  • Affected Version: 8u45
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • OS: windows_8
  • CPU: x86
  • Submitted: 2015-06-23
  • Updated: 2015-11-24
  • Resolved: 2015-11-24
Related Reports
Relates :  
Description
FULL PRODUCT VERSION :
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b15)
Java HotSpot(TM) Client VM (build 25.45-b02, mixed mode)

ADDITIONAL OS VERSION INFORMATION :
Windows 7, Windows 8.1

A DESCRIPTION OF THE PROBLEM :
procedure to show this problem:

1. uninstall all jdk/jre
2. install jdk1.4.2_12
3. install jdk1.8.0_45
4. delete %HOME%\AppData\LocalLow\Sun\Java\Deployment folder if exists
5. start some JWS application
6. application doesn't start.

the point is, if %HOME%\AppData\LocalLow\Sun\Java\Deployment\deployment.properties file doesn't exists, javaws (jp2launcher) launch the following process:

"C:\Program Files\Java\j2re1.4.2_12\bin\javaw.exe" -classpath "C:\Program Files\Java\jre1.8.0_45\lib\deploy.jar" com.sun.deploy.panel.JreLocator

This results in blocking to launch the JWS application.

Killing this process and once deployment.properties file created, this problem won't happen again.



REPRODUCIBILITY :
This bug can be reproduced always.


Comments
Closed - will not fix. Reopen if there's a significant concern.
24-11-2015

When javaws launcher starts up on windows, it loads deployment.properties, then scans the windows registry to find the set of available JRES. For any registered jre that is not in deployment.properties, it invokes it with command: "javaw.exe -classpath deploy.jar com.sun.deploy.panel.JreLocator" to read platform version and product version from standard out. This was removed in JDK9 as part of JDK-8129223, but can still be a problem in 8u when unsupported version (pre 1.5.0) is in registry. In JDK8 (where deploy code is compiled with "-target 1.5 -source 1.5) this crashes when the jre being called is 1.4.2 (or earlier). backporting JDK-8129223 would fix this
24-06-2015

Followed instructions as provided in the report and could reproduce the issue. Java Web Start application failed to start with JDK 1.4.2 installled and deployment.prop missing.
24-06-2015