Installing Java on OS X 10.9 (Mavericks)

后端 未结 11 1573
情深已故
情深已故 2020-11-27 08:55

I have installed the JDK on Mac OS X v10.8 (Mountain Lion). When I upgraded it to Mac OS X v10.9 (Mavericks) and ran java -version

相关标签:
11条回答
  • 2020-11-27 09:31

    This error happens because the plist file of IntelliJ IDEA requires Java version 1.6*. To solve this problem, replace the 1.6* with 1.8*.

    <key>JVMOptions</key>
    <dict>
        <key>ClassPath</key>
          ...
    
        <key>JVMVersion</key>
        <string>1.8*</string>
    
        <key>MainClass</key>
        <string>com.intellij.idea.Main</string>
        <key>Properties</key>
    <dict>
    
    0 讨论(0)
  • 2020-11-27 09:31

    My experience for updating Java SDK on OS X 10.9 was much easier.

    I downloaded the latest Java SE Development Kit 8, from SE downloads and installed the .dmg file. And when typing java -version in terminal the following was displayed:

    java version "1.8.0_11"

    Java(TM) SE Runtime Environment (build 1.8.0_11-b12)

    Java HotSpot(TM) 64-Bit Server VM (build 25.11-b03, mixed mode)

    0 讨论(0)
  • 2020-11-27 09:33

    The new Mavericks (10.9) showed me the "Requesting install", but nothing happened.

    The solution was to manually download and install the official Java package for OS X, which is in Java for OS X 2013-005.

    Update: As mentioned in the comments below, there is a newer version of this same package:

    Java for OS X 2014-001

    Java for OS X 2014-001 (Correcting dead line above)

    Java for OS X 2014-001 includes installation improvements, and supersedes all previous versions of Java for OS X. This package installs the same version of Java 6 included in Java for OS X 2013-005.

    0 讨论(0)
  • 2020-11-27 09:34

    I downloaded manually to here: Java for OS X 2014-001.

    After that open your terminal and check the installation with java -version.

    EDIT (January, 2015): Also see HT202912, About Java for OS X 2014-001:

    enter image description here

    0 讨论(0)
  • 2020-11-27 09:37

    The OP implied that Java 7 was the need. And Java 6 is in fact no longer being 'supported' so 7 is the version you should be installing at this point unless you have legacy app concerns.

    You can get it here: http://java.com/en/download/mac_download.jsp?locale=en

    0 讨论(0)
提交回复
热议问题