United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6625756 New Java Plug-In needs to add current JRE to available JREs in more situations
JDK-6625756 : New Java Plug-In needs to add current JRE to available JREs in more situations

Details
Type:
Bug
Submit Date:
2007-11-05
Status:
Closed
Updated Date:
2010-09-08
Project Name:
JDK
Resolved Date:
2008-01-31
Component:
deploy
OS:
generic
Sub-Component:
plugin
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
6u10
Fixed Versions:
6u10 (b08)

Related Reports
Relates:
Relates:

Sub Tasks

Description
Because the installer does not properly refresh deployment.properties, and also somewhat because the list of available JREs for the Java Plug-In in the Java Control Panel is not maintainable (see 6606278, 6606282), it is necessary for a workaround to be placed in the new Java Plug-In so it will find the current JRE it is running on top of in more situations.

The code in JVMManager.processPluginJavaInfo() needs to be changed to add the current JRE it is running on top of in more situations. Currently it only adds it if deployment.properties does not exist, or contains no listed JREs. It needs to be changed to add it in all situations *unless*:
  - there is a version of the JRE in deployment.properties matching the version it is running on top of, *and*
  - that JRE actually exists.

This workaround will have the side-effect that it will not be possible to use the Java Control Panel to remove the current JRE as an available JRE for the new Java Plug-In. However the alternative, which is that the end user must run the Java Control Panel once after installation in order to get the new plug-in to notice the availability of the current JRE (assuming deployment.properties already exists and has at least one JRE listed for the plug-in), is not acceptable.

                                    

Comments
SUGGESTED FIX

http://sa.sfbay.sun.com/projects/deployment_data/6u10/6625756.1
                                     
2007-11-06
EVALUATION

Changed new plug-in to add the current JRE from which the new plug-in
comes as an available JRE in almost all situations.

Tested manually by modifying deployment.properties in various ways and
verifying that expected JRE version was used; no regression test at
this time.
                                     
2007-11-06



Hardware and Software, Engineered to Work Together