Java installation error
When trying to install Java on my brand-new MacBook Pro Retina, I get a "The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance" error. This occurs for both the JRE and the JDK install. The install log documents the error as follows:
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.'.
Any help would be greatly appreciated!
MacBook Pro with Retina display, OS X Mountain Lion (10.8.4)