Skip to main content

JDK 8 Fails to Install on OS X

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
3 replies [Last post]
swpalmer
Offline
Joined: 2003-06-10

I have successfully installed older builds of JDK 8 but the last few, since about b106 or so have failed to install. Is there a know fix other than a re-install of the OS?
Using OS X 10.8.5 the installer logs show this:

Oct 16 09:59:11 DCM-DRIMAC-01 installd[595]: PackageKit: ----- Begin install -----
Oct 16 09:59:11 DCM-DRIMAC-01 installd[595]: PackageKit: request=PKInstallRequest <2 packages, destination=/>
Oct 16 09:59:11 DCM-DRIMAC-01 installd[595]: PackageKit: packages=(
"PKLeopardPackage ",
"PKLeopardPackage "
)
Oct 16 09:59:11 DCM-DRIMAC-01 installd[595]: PackageKit: Will do receipt-based obsoleting for package identifier com.oracle.jdk8 (prefix path=Library/Java/JavaVirtualMachines/jdk1.8.0.jdk)
Oct 16 09:59:11 DCM-DRIMAC-01 installd[595]: PackageKit: Will do receipt-based obsoleting for package identifier com.oracle.jre (prefix path=Library/Internet Plug-Ins/JavaAppletPlugin.plugin)
Oct 16 09:59:12 DCM-DRIMAC-01 installd[595]: PackageKit: Extracting file://localhost/Volumes/JDK%208/JDK%208.pkg#jdk180.pkg (destination=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandboxManager/1.sandbox/Root/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk, uid=0)
Oct 16 09:59:15 DCM-DRIMAC-01 installd[595]: PackageKit: Extracting file://localhost/Volumes/JDK%208/JDK%208.pkg#javaappletplugin.pkg (destination=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandboxManager/1.sandbox/Root/Library/Internet Plug-Ins/JavaAppletPlugin.plugin, uid=0)
Oct 16 09:59:16 DCM-DRIMAC-01 installd[595]: PackageKit: prevent user idle system sleep
Oct 16 09:59:16 DCM-DRIMAC-01 installd[595]: PackageKit: suspending backupd
Oct 16 09:59:16 DCM-DRIMAC-01 installd[595]: PackageKit: component Library/Internet Plug-Ins/JavaAppletPlugin.plugin/.Contents/Resources/Java Updater.app missing or previously relocated
Oct 16 09:59:16 DCM-DRIMAC-01 installd[595]: PackageKit: Executing script "./preinstall" in /private/tmp/PKInstallSandbox.yTwGLq/Scripts/com.oracle.jdk8.diu6XQ
Oct 16 09:59:16 DCM-DRIMAC-01 installd[595]: PackageKit: Executing script "./preinstall" in /private/tmp/PKInstallSandbox.yTwGLq/Scripts/com.oracle.jre.7qThKj
Oct 16 09:59:16 DCM-DRIMAC-01 install_monitor[602]: Temporarily excluding: /Applications, /Library, /System, /bin, /private, /sbin, /usr
Oct 16 09:59:16 DCM-DRIMAC-01 installd[595]: PackageKit: Shoving /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandboxManager/1.sandbox/Root (1 items) to /
Oct 16 09:59:17 DCM-DRIMAC-01 installd[595]: PackageKit: Executing script "./postinstall" in /private/tmp/PKInstallSandbox.yTwGLq/Scripts/com.oracle.jdk8.diu6XQ
Oct 16 09:59:17 DCM-DRIMAC-01 installd[595]: ./postinstall: 2013-10-16 09:59:17.862 Tools[613:707] No suitable version found where JFR can be registered for JMC.app
Oct 16 09:59:17 DCM-DRIMAC-01 installd[595]: PackageKit: Executing script "./postinstall" in /private/tmp/PKInstallSandbox.yTwGLq/Scripts/com.oracle.jre.7qThKj
Oct 16 09:59:18 DCM-DRIMAC-01 installd[595]: ./postinstall: nothing found to load
Oct 16 09:59:18 DCM-DRIMAC-01 install_monitor[602]: Re-included: /Applications, /Library, /System, /bin, /private, /sbin, /usr
Oct 16 09:59:18 DCM-DRIMAC-01 installd[595]: PackageKit: releasing backupd
Oct 16 09:59:18 DCM-DRIMAC-01 installd[595]: PackageKit: allow user idle system sleep
OS X 10.8.5

Logs show this:

Oct 16 09:59:18 DCM-DRIMAC-01 installd[595]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “JDK 8.pkg”." UserInfo=0x7fa3bb506030 {NSFilePath=./postinstall, NSURL=file://localhost/Volumes/JDK%208/JDK%208.pkg#javaappletplugin.pkg, PKInstallPackageIdentifier=com.oracle.jre, NSLocalizedDescription=An error occurred while running scripts from the package “JDK 8.pkg”.} {
NSFilePath = "./postinstall";
NSLocalizedDescription = "An error occurred while running scripts from the package \U201cJDK 8.pkg\U201d.";
NSURL = "file://localhost/Volumes/JDK%208/JDK%208.pkg#javaappletplugin.pkg";
PKInstallPackageIdentifier = "com.oracle.jre";
}
Oct 16 09:59:18 DCM-DRIMAC-01 Installer[586]: install:didFailWithError:Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “JDK 8.pkg”." UserInfo=0x7fb3be00a840 {NSFilePath=./postinstall, NSURL=file://localhost/Volumes/JDK%208/JDK%208.pkg#javaappletplugin.pkg, PKInstallPackageIdentifier=com.oracle.jre, NSLocalizedDescription=An error occurred while running scripts from the package “JDK 8.pkg”.}
Oct 16 09:59:19 DCM-DRIMAC-01 Installer[586]: Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.
Oct 16 09:59:19 DCM-DRIMAC-01 Installer[586]: IFDInstallController BC2332E0 state = 7
Oct 16 09:59:19 DCM-DRIMAC-01 Installer[586]: Displaying 'Install Failed' UI.
Oct 16 09:59:19 DCM-DRIMAC-01 Installer[586]: 'Install Failed' UI displayed message:'The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.'.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
swpalmer
Offline
Joined: 2003-06-10

Nobody has seen this but me???

I just noticed this int he installer log:

installd[595]: PackageKit: component Library/Internet Plug-Ins/JavaAppletPlugin.plugin/.Contents/Resources/Java Updater.app missing or previously relocated

Note the dot before "Contents" I don't think it should be there.

swpalmer
Offline
Joined: 2003-06-10

I should note that all the files appear to be installed correctly. The JDK reports the correct version from both the main JDK install folder and the applet plugin folder as seen here:

$ /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/bin/java -version
java version "1.8.0-ea"
Java(TM) SE Runtime Environment (build 1.8.0-ea-b111)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b53, mixed mode)

$ /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java -version
java version "1.8.0-ea"
Java(TM) SE Runtime Environment (build 1.8.0-ea-b111)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b53, mixed mode)

I'm not sure what the postinstall script is attempting that fails.

beej666
Offline
Joined: 2014-08-11

i had a similar error trying to install JDK 8u11 on OSX 10.9.4 just now. i had just installed the JRE before trying to install the JDK, so maybe that was the problem?

in any case, i uninstalled the JRE following the directions at http://docs.oracle.com/javase/8/docs/technotes/guides/install/mac_jre.ht... and then retried installing the JDK and it worked.