JDK-7104732 : 7u2+FX: Unregistered plugin after JRE reinstall scenario
  • Type: Bug
  • Component: install
  • Sub-Component: install
  • Affected Version: 7u2
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: windows
  • CPU: generic
  • Submitted: 2011-10-25
  • Updated: 2012-03-20
  • Resolved: 2011-11-20
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 6 JDK 7
6u32Fixed 7u2 b12Fixed
Related Reports
Duplicate :  
Relates :  
Description
Plugin does not work with IE after JRE reinstall scenario.
HKLM\Software\JavaSoft\Java Plug-in\10.2.0\UseJava2IExplorer is 0.

Comments
EVALUATION Also, we need to use the right deploy home when registering ssv/dt/jcp. the follow in the install repo needs to be changed. RegInstall.cpp, CanonicalizeJava2Registry. The JAVAHOME value for IDR_RegDynamicVersion needs to updated to use the latest deploy home. Below is code example to get latest deploy home. TCHAR szDeployHome[BUFFER_SIZE] = {NULL}; // check if deploy home exists already and re-use BOOL validDeployHome = GetDeployHome(lpszVersion, szDeployHome); if (validDeployHome) { // use it } RegInstall.cpp, InstallJava. Similar to above, we should use latest deploy home before calling into DT/JCP/SSV register function: TCHAR szDeployHome[BUFFER_SIZE] = {NULL}; // use deploy home if available BOOL validDeployHome = GetDeployHome(lpszVersion, szDeployHome); if (validDeployHome) { _tcscpy(szJavaHome, szDeployHome); } // Install deployJava1.dll and npdeployJava1.dll InstallDeployToolkit(szJavaHome); // Install control panel InstallJavaControlPanel(szJavaHome); // perform setting up of SSV reg. keys SSVSetup(szJavaHome);
08-11-2011

EVALUATION for the UseJava2IExplorer flag problem, i think problem is in installerdll/src/installer/RegUniqueVersion.rgs it sets UseJava2IExplorer to 0 by default and it depends on another piece of code to set it back to 1. it prob. worked before when deploy version is always same as jre version but now that it's different, it won't work. i think we can set it to 1 by default ?
07-11-2011

EVALUATION >>Steps to reproduce: >>1) Launch 7u2 b09 JDK installer, accept defaults - install JDK, JRE, FX SDK and FX RE I don't think all of this is needed to reproduce a problem with plugin. No need to include the JDK or FX-SDK, which have nothing to do with plugin. You should be able to repro using JRE 7u2 b09, then the FX RE, like this: 1) Install JRE 7u2-b09 and FX RE (I believe version 2.0.2, right?) 2) Remove JRE 7u2 b09 using Add/Remove Programs(Programs and Features) 3) Install JRE 7u2 b09 4) Launch IE with demo applet When I do this, I'm still able to view an applet with IE. However, I notice 2 registries: HKLM/Software/JavaSoft/Java Plug-in/10.2.0 @UseJava2IExplorer=0 HKLM/Software/JavaSoft/Java Plug-in/10.2.1 @UseJava2IExplorer=1 This makes sense because 10.2.1 is the newer version of deploy. Are you seeing this other registry? Are you sure applets do not load. I used http://j2se.east.sun.com/~billyh/applet.html
31-10-2011

EVALUATION deploy.dll can now handle all of the deployment registration. However, the 7u2 JRE installer is still doing all of the registration with installer.dll. Whereas the fx installer is now using deploy.dll. So I suspect it has to do with the mismatch. This may go away with the fix for 7088173, which is going into 7u4.
31-10-2011