开发者

If i want the JDK for my Mac, where should I look for it? [closed]

开发者 https://www.devze.com 2022-12-24 13:43 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

Closed 3 years ago.

  • This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
  • 开发者_高级运维
  • We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Improve this question

I want Java to be installed on my Leopard MacBook, but I couldn't find the JDK kit for Mac on Sun's Java site. Where should I look for it?


The JDK is already installed on Mac OS X 10.5. If you go to /Applications/Utilities you will see Java Preferences. There you can select between the versions of Java you would like to use, including version 6 (6 is only 64-bit so if you have a 32-bit Core Duo Macbook you'll have to use SoyLatte).

alt text http://img121.imageshack.us/img121/4249/javapref.jpg


You need to install the Xcode developer tools. The JDK is included there. Before you do that, though, you can check if it is already installed by using javac -version. To find out where it is located, you can run the command which javac, although it will most likely be a symlink to somewhere else.


It comes with the OS.

Try "java -version" in Terminal.

Apple is maintaining this version, not Sun. It gets updated using Software Update, and there may be downloads (for beta versions) at the Apple Developer Connection site.


OpenJDK seems to be the ultimate source for anyone who doesn't want to run in to licensing issues. I understand Oracle's version is derived from OpenJDK.

Installers for macOS can be found at https://adoptopenjdk.net/


You may want to try soylatte or openJDK from Mac Ports . Also, Apple has download section of java too ( http://developer.apple.com/java/download/ ) you didn't tell what architecture you are using which has some impact.

0

精彩评论

暂无评论...
验证码 换一张
取 消