JDK-7144777 : Few issues in DT plugin API: enableJavaFX
  • Type: Bug
  • Component: deploy
  • Sub-Component: deployment_toolkit
  • Affected Version: 8
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: windows
  • CPU: x86
  • Submitted: 2012-02-11
  • Updated: 2013-12-09
  • Resolved: 2012-02-16
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.
JDK 7 JDK 8
7u4Fixed 8 b26Fixed
Description
Few issues in DT plugin API: enableJavaFX

1.   for the IE case, we didn't extract the input VARIANT into bool correctly.
so right now, to use the API, IE needs to do enableJavaFX(1); while FF is enableJavaFX(true)

2.  HKEY_LOCAL_MACHINE\SOFTWARE\Oracle\JavaFX, value name Disabled.  it's set by RegisterDeploy, and it's set even if it's a JRE install also.  We should set this key only when installing JavaFX runtime.

3.  when enableJavaFX is called using DT, it tries to set it while running in mediurm integrity on win7/vista.  this cause the key write re-directed to :  HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\Oracle\JavaFX .  we need to investigate and see if this is really what we want, and also if any cleanup on this key is needed.

4.  Need to check if the Disabled key should have any effect on subseqent JavaFX runtime installations, either triggered by manual install or auto install.

Comments
verified with jre8 b117. No HKEY_LOCAL_MACHINE\SOFTWARE\Oracle\JavaFX
09-12-2013

EVALUATION After team meeting discussion yesterday, decision is to remove the enable/disable FX feature in DT/JCP. This webrev contains removal of all code related to this feature. Also, added code to regdeploy cleanupregistry function to remove the disabled key if found. the key has no use anymore. We kept the native DT plugin API getJavaFXEnabled for now. We made it deprecated and always return true. Tests: manual tests to ensure DT/JCP/applet/webstart still works.
14-02-2012