JDK-6606278 : Refresh mechanism for deployment.properties from Windows registry
  • Type: Enhancement
  • Component: deploy
  • Sub-Component: deployment_toolkit
  • Affected Version: 6u5,6u10
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: windows
  • CPU: generic
  • Submitted: 2007-09-18
  • Updated: 2010-09-17
  • Resolved: 2008-01-31
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
6u10 b10Fixed 7Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Deployment.properties frequently gets out of date with respect to the
installed JRE instances listed in the Windows registry. One reason for
this is that the installer does not update or create

A piece of code is needed which queries the registry and populates
deployment.properties with the JREs it finds. A button should be added
to the Java Control Panel, Java Applet Runtime Parameters dialog (and
perhaps the Java Application Runtime Parameters dialog as well) like
"Rebuild From Registry" which will scan the registry and add entries
for JREs that were in the registry but not in
deployment.properties. (This needs to be made a user-selectable action
rather than something that happens automatically each time, since the
user might choose to remove a JRE from the Java Applet Runtime
Settings and we don't want to force it on them again.)

The installer should be modified so that if deployment.properties does
not exist, it calls this code to generate it.
After more thought, this can probably simply be added to the existing Config class. The native code Java Web Start has for this purpose is complicated and probably not necessary because we do not have the requirement that this code be pure C code. While it would be nice if the installer updated deployment.properties it isn't strictly necessary since both the new plug-in and control panel need to. Therefore what is really needed is code in the Config class which will rescan the registry and add discovered JREs to the JREInfo and PluginJavaInfo lists. Presumably the existing Config machinery for writing out deployment.properties can then be called.
Additionally, the Config class should be modified to always return a JREInfo or PluginJavaInfo for the currently running JRE, even if it isn't in deployment.properties. A hack for this was added to the new plug-in's JVMManager class; see containsWorkingCurrentVersion() and calls to it. If this were pushed down into the Config class, along with the registry scanning on the Windows platform, then the Config class would be able to refresh deployment.properties equally as well as the native code in Java Web Start, and we could remove the associated code from the JVMManager class.

EVALUATION Fixed in b10.