1 2 Previous Next 21 Replies Latest reply: Oct 29, 2013 11:57 AM by thigmophilic Go to original post
  • 15. Re: Java installation error
    andy_az Level 1 Level 1 (0 points)

    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.'.

  • 16. Re: Java installation error
    duanegris Level 1 Level 1 (0 points)

    Exactly the same error wit hthe package jdk-7u25-macosx-x64.dmg.

    The md5sum of my download is:

    $ md5sum jdk-7u25-macosx-x64.dmg

    2659c363a24b58457030bf42b302ff77  jdk-7u25-macosx-x64.dmg

     

    Despite i can't find the original md5sum on the page where i down loaded the package from (http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.h tml)-

    I don't think this is a corrupted package but rather a postinstall script error or something related.

  • 17. Re: Java installation error
    Alberto Ravasio Level 4 Level 4 (3,175 points)

    $ md5sum jdk-7u25-macosx-x64.dmg

    2659c363a24b58457030bf42b302ff77  jdk-7u25-macosx-x64.dmg

     

    Despite i can't find the original md5sum on the page where i down loaded the package

     

    Java SE Binaries Checksum, Checksum for Java SE 7u25 binaries. That's correct.

  • 18. Re: Java installation error
    andy_az Level 1 Level 1 (0 points)

    I ended up fixing the problem by re-installing OS X as per the instructions from Apple:

     

    http://support.apple.com/kb/PH10763

     

    This keeps all the settings and user info intact, but provides for a fresh copy of the OS which in my case then allowed for the installation of Java to finish successfully.

  • 19. Re: Java installation error
    duanegris Level 1 Level 1 (0 points)

    I also tried the beta releases of the JDK 8 for MacOSX from https://jdk8.java.net/download.html

     

    jdk-8-ea-bin-b104-macosx-x86_64-22_aug_2013.dmg

     

    It ends up wit hthe same problem.

     

    Given that the installation works correctly on a freshly installed OS, the postinstall script probably fails on an unexpected  already-existing file or directory coming from a previous installation. Unfortunately, i can't imagine reinstall my whole system just to make this script happy.

  • 20. Re: Java installation error
    andy_az Level 1 Level 1 (0 points)

    That was exactly the same for me. Re-installing OS X in very simple and does not affect any of your programs setting or anything else -  the computer will be exactly as it was before (minus the error). All you need is internet connection and about 30 minutes. Here are the instructions:

     

    You can use the built-in recovery disk to install a new copy of OS X while keeping your files and user settings intact.

    Important: You need to be connected to the Internet to reinstall OS X.

    1.Choose Apple menu > Restart. Once your Mac restarts (and the gray screen appears), hold down the Command (⌘) and R keys.

    2.If you’re not connected to the Internet, choose a network from the Wi-Fi menu (in the top-right corner of the screen).

    3.Select Reinstall OS X, and then click Continue.

    4.Follow the onscreen instructions. In the pane where you select a disk, select your current OS X disk (in most cases, it is the only one available).

    5.To start the installation, click Install.

  • 21. Re: Java installation error
    thigmophilic Level 1 Level 1 (0 points)

    I fixed this on my installation.  I use a "browser proxy" called Choosy as my system's default browser.  This allows me to send certain URLs to different browsers based on various rules.

     

    When installing Java, Java tried to install itself into Choosy's plugins folder - a folder that doesn't exist.  I temporarily set my system browser to Firefox, re-ran the installer, and everything checked out.  At that point I made Choosy my default browser again.

     

    Here was the line in installer.log that tipped me off:

     

    installd[35456]: ./postinstall: LSGetApplicationForInfo() failed with error -10814 while trying to determine the application with bundle identifier com.choosyosx.choosy.

     

    YMMV, hope that helps at least a few people...

1 2 Previous Next