United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6737531 Runtime parameters in Java Control Panel is not preserved when jre version has milestone appended.
JDK-6737531 : Runtime parameters in Java Control Panel is not preserved when jre version has milestone appended.

Details
Type:
Bug
Submit Date:
2008-08-15
Status:
Closed
Updated Date:
2010-09-08
Project Name:
JDK
Resolved Date:
2008-10-01
Component:
deploy
OS:
generic,windows_xp,windows
Sub-Component:
plugin
CPU:
x86,generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
6u10
Fixed Versions:
6u10 (b31)

Related Reports
Duplicate:
Relates:
Relates:
Relates:
Relates:
Relates:

Sub Tasks

Description
When jre version has milestone appended, for example, "1.6.0_10-beta", "1.6.0_10-rc", jre runtime parameters entered in java control panel are not preserved. They are lost when refresh jre list.

To reproduce it, install 1.6.0_10 rc. Check output of "java -version" to make sure the version string has "-rc" in it. And open JCP java panel, make sure the "1.6.0_10-rc" is listed. Enter jvm parameter for "1.6.0_10-rc" in JCP, for example "-Dsun.java2d.noddraw=true". Save it and close JCP. Open JCP again, look the java panel, the jvm parameter is not there.

This is not reproducible if jre version is "1.6.0_10".

                                    

Comments
EVALUATION

The bug affects many many developers who use "beta" "rc" version of java plugins.
                                     
2008-08-15
EVALUATION

The root cause is the java webstart native launcher. In java control panel, it calls javaws.exe to scan registry to find new updated jres in the Java panel. The jre prodcut version obtained from windows registry does not contain milestones. javaws.exe considers the jre from the registry (1.6.0_10) is different from the one from the deployment configuration file (which is 1.6.0_10-rc). So it update the configuartion file with the one from the registry. However, it does not merge the vm arguments from the configuaration file.

We can fix it in javaws.exe by only comparing the product version without milestones.
                                     
2008-08-18



Hardware and Software, Engineered to Work Together