the origin page from http://stackoverflow.com/questions/6614380/jdk-on-osx-10-7-lion
Tips: the steps 5-10 are not suit for my eclipse.no JVM Contents (MacOS X Default) ,only Standard Jre Environment option and I can't choose the dirctory that the java runtime directory installed.
fixed idea: as the java standard content is hidden in the mac jdk library , so we can't choose the Java home dircytory dircectly.so we should soft link the java home directory to another reachable place.
such as ln -s /Library/Java/JavaVirtualMachines/1.6.0_26-b03-383.jdk/Contents/Home ~/JDK_HOME
then we can add the mac JRE environment like the standard JRE environment.
good luck every one!
You can download the 10.7 Lion JDK from http://connect.apple.com.
-
Sign in and click the java
section on the right.
-
The jdk is installed into a different location then previous. This will result in IDEs (such as Eclipse) being unable to locate source code and javadocs.
-
At the time of writing the JDK ended up here:
/Library/Java/JavaVirtualMachines/1.6.0_26-b03-383.jdk/Contents/Home
-
Open up eclipse preferences and go to Java --> Installed JREs page
-
Rather than use the "JVM Contents (MacOS X Default) we will need to use the JDK location
-
At the time of writing Search is not aware of the new JDK location; we we will need to click on theAdd button
-
From the Add JRE wizard choose "MacOS X VM" for the JRE Type
-
For the JRE Definition Page we need to fill in the following:
- JRE Home: /Library/Java/JavaVirtualMachines/1.6.0_26-b03-383.jdk/Contents/Home
-
The other fields will now auto fill, with the default JRE name being "Home". You can quickly correct this to something more meaningful:
-
Finish the wizard and return to the Installed JREs page
-
Choose "System JDK" from the list
-
You can now develop normally with:
- javadocs correctly shown for base classes
- source code correctly shown when debugging
分享到:
相关推荐
Java环境配置教程,环境变量设置教程,内含Eclipse、jdk和jre安装包等等。
jdk-8u45 for Mac OS X x64 截至 2015-06-19 最新版 JDK for Mac OS X x64
jdk8linux、windows、mac os操作系统安装包 jdk8linux、windows、mac os操作系统安装包 jdk8linux、windows、mac os操作系统安装包 jdk8linux、windows、mac os操作系统安装包 jdk8linux、windows、mac os操作系统...
java jdk jre8java jdk jre8
Eclipse Temurin (OpenJDK8U-jre_x64_linux_hotspot_8u312b07.tar.gz)适用于Linux系统。 Eclipse Temurin 项目提供了高质量的、经过 TCK 认证的 OpenJDK 运行时和相关技术,可在整个 Java生态系统中使用。
讲述了jdk与jre的区别,值得一看!很多程序员已经干了一段时间java了依然不明白jdk与jre的区别。JDK就是Java Development Kit.简单的说JDK是面向开发人员使用的SDK,它提供了Java的开发环境和运行环境。SDK是...
eclipse+jdk1.8
Mac OS jdk1.8安装包
jdk jre各种版本win、mac、linux等,非官方但安全的下载地址,不用登陆甲骨文官网,不用忍受龟速下载 jdk-8u-linux-x64.tar.gz jdk-8u-windows-x64.exe
Eclipse+jdk安装包;Eclipse+jdk安装包;Eclipse+jdk安装包
Java JDK 1.8 版本 Mac os M1处理器 ARM版本,下载后直接无脑安装即可。JDK for ARM。
jdk-8u212-macosx-x64.dmg Mac OS X x64 安装包 截至2019.04.25 最新版JDK for Mac OS X x64 .dmg文件大小: 252.25 MB .dmg文件检验码 sha256: 9bcb4265a55e2fe63b9c58ca6c5a54eb6dda303bb69510ca6eddc2f088e41b2a ...
Mac jdk1.6,支持中文 “适用于 OS X 的 Java 2014-001”改进了安装过程,并会取代之前所有版本的“适用于 OS X 的 Java”。本软件包会安装 Java 6,它与“适用于 OS X 的 Java 2013-005”中的版本相同。 在尚未安装...
mac os jdk 最新版,
网上摘录总结的关于jdk、jre、jvm的区别
AIX JDK1.8 JRE1.8 IBM官网下载的安装包 jdk 和jre都有 32位,由于官网下载太慢,这里另存一份,需要的同学自取
我们在MyEclipse 的安装文件里会看到JDK和JRE两个文件,你知道JDK JRE 的作用与区别么
免安装JDK1.7、JRE1.7,解压后配置操作系统环境变量即可使用
eclipse-temurin官网下载的eclipse-temurin-alpine-jre-17
eclipse开发工具jdk1.8补丁 将 Javacompiler1.8放在eclipse开发工具的plugins下,打开eclipse菜单-help-install new software-add-archive。