JDK-7189314 : Typo, wrong Symlink path to JavaControlPanel.prefPane
  • Type: Bug
  • Component: install
  • Sub-Component: install
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: os_x
  • CPU: x86
  • Submitted: 2012-08-06
  • Updated: 2013-11-07
  • Resolved: 2012-08-17
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
7u40 b04Fixed
Description
FULL PRODUCT VERSION :
$ /usr/libexec/java_home --exec java -version
java version "1.7.0_06"
Java(TM) SE Runtime Environment (build 1.7.0_06-b22)
Java HotSpot(TM) 64-Bit Server VM (build 23.2-b09, mixed mode)

ADDITIONAL OS VERSION INFORMATION :
Mac OS X Lion 10.7.4 (11E53)

A DESCRIPTION OF THE PROBLEM :
The Symlink to the Preference Pane in /Library/PreferencePanes is set falsely by the installer. There is a typo in it which prevents the PreferencePane to be launched.

ATTENTION:

INCORRECT is (as time of being):

sudo ln -s /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/deploy/JavaControlPanel.prefpane /Library/PreferencePanes/JavaControlPanel.prefpane

CORRECT would be:

sudo ln -s /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/deploy/JavaControlPanel.prefPane /Library/PreferencePanes/JavaControlPanel.prefPane

REMEMBER:
Remember the lower "p" (incorrect) versus the upper "P" (correct) in the word "prefpane" (incorrect) versus "prefPane" (correct) of the phrase "JavaControlPanel.prefPane"

This bug is part of the latest FCS-build of JDK7u6-b22 on
http://jdk7.java.net/download.html
http://www.java.net/download/jdk7u6/archive/b22/binaries/jdk-7u6-fcs-bin-b22-macosx-x86_64-01_aug_2012.dmg

as well as part of the official public OTN-builds on
http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1637583.html
http://download.oracle.com/otn-pub/java/jdk/7u6-b22/jdk-7u6-macosx-x64.dmg

Please fix asap!

REGRESSION.  Last worked in version 7

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Install jdk-7u6-fcs-bin-b22-macosx-x86_64-01_aug_2012.dmg or jdk-7u6-macosx-x64.dmg

$ ls -l /Library/PreferencePanes

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
lrwxr-xr-x   1 root  wheel   101  6 Aug 08:53 JavaControlPanel.prefPane -> /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/deploy/JavaControlPanel.prefPane


ACTUAL -
lrwxr-xr-x   1 root  wheel   101  6 Aug 08:53 JavaControlPanel.prefpane -> /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/deploy/JavaControlPanel.prefpane

REPRODUCIBILITY :
This bug can be reproduced always.

CUSTOMER SUBMITTED WORKAROUND :
$ sudo rm /Library/PreferencePanes/JavaControlPanel.prefpane
$ sudo ln -s /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/deploy/JavaControlPanel.prefPane /Library/PreferencePanes/JavaControlPanel.prefPane

Comments
EVALUATION Change the postinstall scripts for the JRE installer to have .prefPanes as the extension.
14-08-2012