Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Java installation error

I tried to update my java installation in Mountain Lion, by dowloading and installing latest release from official Java site, but when I try to install it an error something goes wrong:


User uploaded file


Here is the log file content:


Apr 21 15:21:14 iMac-di-Giuseppe.local installd[777]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “JDK 7 Update 21.pkg”." UserInfo=0x7fa5d3465350 {NSFilePath=./postinstall, NSURL=file://localhost/Volumes/JDK%207%20Update%2021/JDK%207%20Update%2021.pkg# javaappletplugin.pkg, PKInstallPackageIdentifier=com.oracle.jre, NSLocalizedDescription=An error occurred while running scripts from the package “JDK 7 Update 21.pkg”.} {

NSFilePath = "./postinstall";

NSLocalizedDescription = "An error occurred while running scripts from the package \U201cJDK 7 Update 21.pkg\U201d.";

NSURL = "file://localhost/Volumes/JDK%207%20Update%2021/JDK%207%20Update%2021.pkg#javaa ppletplugin.pkg";

PKInstallPackageIdentifier = "com.oracle.jre";

}



Please help 😟

iMac, OS X Mountain Lion (10.8.3), 2,4Ghz Intel Core 2 Duo

Posted on Apr 22, 2013 9:18 AM

Reply
21 replies

Apr 24, 2013 1:40 PM in response to Messia

If you have more than one user account, these instructions must be carried out as an administrator.

Launch the Console application in any of the following ways:

☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)

☞ In the Finder, select Go Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.

☞ Open LaunchPad. Click Utilities, then Console in the icon grid.

Select "/var/log/install.log" from the file list on the left. If you don't see that list, select

View Show Log List

from the menu bar. Then select the messages from the last installation or update attempt, starting from the time when you initiated it. If you're not sure when that was, start over and note the time. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V).


If there are runs of repeated messages, post only one example of each. Don’t post many repetitions of the same message.

When posting a log extract, be selective. Don't post more than is requested.

Please do not indiscriminately dump thousands of lines from the log into this discussion.


Important: Some private information, such as your name, may appear in the log. Edit it out by search-and-replace in a text editor before posting.

Jul 19, 2013 8:12 AM in response to Linc Davis

I have just experienced the same issue as Messia when installing Jave to my brand-new MacBook Pro, and have only found this discussion in regards to the problem. This occurs for both the JRE and the JDK install. Was there ever a solution to fix this issue? See and extract of my log below. Any help would be greatly appreciated!


Jul 18 18:42:25 Andys-MacBook-Pro.local installd[298]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “Java 7 Update 25.pkg”." UserInfo=0x7fbe70e29100 {NSFilePath=./postinstall, NSURL=file://localhost/Volumes/Java%207%20Update%2025/Java%207%20Update%2025.pk g#javaappletplugin.pkg, PKInstallPackageIdentifier=com.oracle.jre, NSLocalizedDescription=An error occurred while running scripts from the package “Java 7 Update 25.pkg”.} {

NSFilePath = "./postinstall";

NSLocalizedDescription = "An error occurred while running scripts from the package \U201cJava 7 Update 25.pkg\U201d.";

NSURL = "file://localhost/Volumes/Java%207%20Update%2025/Java%207%20Update%2025.pkg#jav aappletplugin.pkg";

PKInstallPackageIdentifier = "com.oracle.jre";

}

Jul 18 18:42:25 Andys-MacBook-Pro.local Installer[1101]: install:didFailWithError:Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “Java 7 Update 25.pkg”." UserInfo=0x7ff594ac4dc0 {NSFilePath=./postinstall, NSURL=file://localhost/Volumes/Java%207%20Update%2025/Java%207%20Update%2025.pk g#javaappletplugin.pkg, PKInstallPackageIdentifier=com.oracle.jre, NSLocalizedDescription=An error occurred while running scripts from the package “Java 7 Update 25.pkg”.}

Jul 18 18:42:26 Andys-MacBook-Pro.local Installer[1101]: Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.

Jul 18 18:42:26 Andys-MacBook-Pro.local Installer[1101]: IFDInstallController 94C6E6F0 state = 7

Jul 18 18:42:26 Andys-MacBook-Pro.local Installer[1101]: Displaying 'Install Failed' UI.

Jul 18 18:42:26 Andys-MacBook-Pro.local Installer[1101]: 'Install Failed' UI displayed message:'The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.'.

Java installation error

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.