United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7189314 Typo, wrong Symlink path to JavaControlPanel.prefPane
JDK-7189314 : Typo, wrong Symlink path to JavaControlPanel.prefPane

Details
Type:
Bug
Submit Date:
2012-08-06
Status:
Closed
Updated Date:
2013-11-07
Project Name:
JDK
Resolved Date:
2012-08-17
Component:
install
OS:
os_x
Sub-Component:
install
CPU:
x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
7u40 (b04)

Related Reports
Backport:
Backport:

Sub Tasks

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.
                                     
2012-08-14



Hardware and Software, Engineered to Work Together