Error trying to installing JDK8 U11 OSX 10.10 Yosemite

前提是你 提交于 2019-12-07 10:34:58

问题


Today was the release of Oracle JDK8 U11.

When I try to install the .pkg in OSX yosemite 10.10 I get this error and can't continue.


回答1:


The OSX version is stored in /System/Library/CoreServices/SystemVersion.plist

We can temporary change the OSX version before installing de package.

  1. Change OSX version 10.10 to 10.9:

    sudo sed -i '' 's/>10.10</>10.9</' /System/Library/CoreServices/SystemVersion.plist

  2. Install Java and don't forget to change your JAVA_HOME to /Library/Java/JavaVirtualMachines/jdk1.8.0_11.jdk

  3. Restore OSX version

    sudo sed -i '' 's/>10.9</>10.10</' /System/Library/CoreServices/SystemVersion.plist




回答2:


There was a bug in the Java 8 package installer which was addressed in the u20 early access release. If you are feeling brave, it is available at https://jdk8.java.net/download.html.



来源:https://stackoverflow.com/questions/24787530/error-trying-to-installing-jdk8-u11-osx-10-10-yosemite

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!