Я скачал JRE8 с сайта Oracle (jre-8u25-macosx-x64.dmg
). Затем я открыл dmg
и запустил установку. Процесс установки начался, но затем возникла следующая ошибка:
The installation failed.
The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.
Та же ошибка, если я пытаюсь установить JRE7.
Я тоже пытался скачать jre-7u71-macosx-x64.tar.gz
и распаковать, но после этого Java отказалась работать корректно. java -version
подходит, но следующий код выводит Unknown
:
System.out.println(System.getProperty("os.name"));
Это очень странно. Кто-нибудь сталкивался с такой же проблемой?
ОБНОВЛЕНИЕ 1
Я бегу sudo diskutil repairPermissions /
Затем снова запускаю установщик и нажимаю ⌘ + L
. Журнал:
installd[438]: PackageKit: ----- Begin install -----
installd[438]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “Java 8 Update 25.pkg”." UserInfo=0x7f8442b3a440 {NSFilePath=./postinstall, NSURL=file://localhost/Volumes/Java%208%20Update%2025/Java%208%20Update%2025.pkg#javaappletplugin.pkg, PKInstallPackageIdentifier=com.oracle.jre, NSLocalizedDescription=An error occurred while running scripts from the package “Java 8 Update 25.pkg”.} {
NSFilePath = "./postinstall";
NSLocalizedDescription = "An error occurred while running scripts from the package \U201cJava 8 Update 25.pkg\U201d.";
NSURL = "file://localhost/Volumes/Java%208%20Update%2025/Java%208%20Update%2025.pkg#javaappletplugin.pkg";
PKInstallPackageIdentifier = "com.oracle.jre";
}
Installer[1667]: Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.
Installer[1667]: Displaying 'Install Failed' UI.
Installer[1667]: 'Install Failed' UI displayed message:'The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.'.
installer: Error - You are trying to install Java 8 Update 25, however Java 8 Update 77 build 03 is already installed
, но командаjava -version
говорит-bash: java: command not found
. 26.03.2016installer: The upgrade failed (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.)
при выполненииsudo installer -pkg ~/desktop/jre/Java\ 8\ Update\ 25.pkg -target /
11.03.2017