`

Mac OS X Lion Eclipse JDK JRE Not found problem(Solved)

    博客分类:
  • JAVA
 
阅读更多

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.

 

  1. Sign in and click the java section on the right.

  2. 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.

  3. At the time of writing the JDK ended up here:

    /Library/Java/JavaVirtualMachines/1.6.0_26-b03-383.jdk/Contents/Home

  4. Open up eclipse preferences and go to Java --> Installed JREs page

  5. Rather than use the "JVM Contents (MacOS X Default) we will need to use the JDK location

  6. At the time of writing Search is not aware of the new JDK location; we we will need to click on theAdd button

  7. From the Add JRE wizard choose "MacOS X VM" for the JRE Type

  8. 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
  9. The other fields will now auto fill, with the default JRE name being "Home". You can quickly correct this to something more meaningful:

    • JRE name: System JDK
  10. Finish the wizard and return to the Installed JREs page

  11. Choose "System JDK" from the list

  12. You can now develop normally with:

    • javadocs correctly shown for base classes
    • source code correctly shown when debugging

 

分享到:
评论

相关推荐

    Java环境 Eclipse配置教程+软件包jdk jre

    - `JAVA_HOME`:将其值设置为JDK的安装目录(例如:C:\Program Files\Java\jdk1.8.x_xxx)。 - `PATH`:在已有路径中添加 `%JAVA_HOME%\bin`,这样命令行就可以识别Java命令了。 4. 最后,重启你的计算机使更改...

    Mac OS jdk1.8安装包

    提供的文件名为`jdk-8u131-macosx-x64.dmg`,这是Oracle公司为Mac OS X 64位系统发布的JDK 1.8的一个具体版本。通常,你可以从Oracle官方网站的Java SE下载页面获取最新版本的JDK,但在这里我们已经有了特定版本的...

    mac os jdk 最新版

    描述中提到的"jre-8u181-macosx-x64.dmg"文件,是Oracle公司提供的Java Runtime Environment(JRE)的一个版本,这里是8u181,适用于Mac OS的64位系统。JRE是JDK的一部分,它包含了运行Java应用程序所需的组件,如...

    jdk-8u45-macosx-x64(Mac OS X x64).dmg

    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操作系统安装包 jdk8linux、windows、mac os操作系统...

    Mac OS X JDK1.6

    1. **集成开发环境(IDEs)**:开发者可以选择如Eclipse、IntelliJ IDEA或NetBeans等IDEs,这些都支持Mac OS X上的JDK1.6,提供友好的开发界面和自动化工具。 2. **编译和运行Java代码**:通过JDK1.6提供的`javac`...

    eclipse+jdk1.8资源下载

    《Eclipse与JDK1.8:开发者的必备工具》 Eclipse和JDK1.8是Java开发者不可或缺的两大工具,它们共同构建了高效、稳定的编程环境,为Java应用程序的开发提供了强大的支持。 首先,让我们来了解一下Eclipse。Eclipse...

    jdk与jre的区别

    JDK 与 JRE 的区别 JDK(Java Development Kit)和 JRE(Java Runtime Environment)是 Java 语言的两个核心组件,它们之间存在着一定的关系和区别。下面我们将详细介绍 JDK 和 JRE 的概念、区别和关系。 JDK JDK...

    AIX JDK1.8 JRE1.8 32位

    标题中的"AIX JDK1.8 JRE1.8 32位"指的是IBM的Java开发工具包(JDK)和Java运行环境(JRE)的32位版本,这两个组件都是针对AIX操作系统设计的。AIX,全称Advanced Interactive eXecutive,是IBM推出的一种基于UNIX的...

    jdk、jre、jvm的区别

    ### JDK、JRE与JVM的区别详解 #### 一、引言 在深入探讨JDK、JRE与JVM之间的区别之前,我们首先需要明确这三个概念的基本定义及其各自的作用。对于初学者而言,理解这些核心组件是学习Java编程的基础。 #### 二、...

    eclipse与JDK配置

    **Eclipse与JDK配置详解** 在Java开发中,Eclipse是一款广泛使用的集成开发环境(IDE),而JDK则是Java开发工具包,是编写、编译和运行Java程序的基础。两者之间的正确配置对于开发者来说至关重要,因为这直接影响...

    少量积分-java jdk jre各种版本非官方但安全的下载地址

    jdk jre各种版本win、mac、linux等,非官方但安全的下载地址,不用登陆甲骨文官网,不用忍受龟速下载 jdk-8u-linux-x64.tar.gz jdk-8u-windows-x64.exe

    Eclipse Temurin (OpenJDK8U-jre_x64_linux_hotspot_8u312b07)

    Eclipse Temurin (OpenJDK8U-jre_x64_linux_hotspot_8u312b07.tar.gz)适用于Linux系统。 Eclipse Temurin 项目提供了高质量的、经过 TCK 认证的 OpenJDK 运行时和相关技术,可在整个 Java生态系统中使用。

    Eclipse+jdk安装包

    Eclipse和JDK是Java开发不可或缺的两个工具。Eclipse是一款功能强大的集成开发环境(IDE),主要用于编写Java应用程序,同时也支持其他编程语言如C++、Python等。而JDK(Java Development Kit)则是Oracle公司提供的...

    jdk-8u212-macosx-x64.dmg Mac OS X x64 安装包

    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 os M1处理器 ARM架构JDK1.8

    Java JDK 1.8 版本 Mac os M1处理器 ARM版本,下载后直接无脑安装即可。JDK for ARM。

    java jdk jre 1.8

    jdk jre 1.8

    eclipse和jdk的配置

    1. **下载Eclipse**: 访问Eclipse官网,根据操作系统选择合适的版本(Windows、Mac OS或Linux)进行下载。 2. **安装Eclipse**: 下载完成后,双击运行安装程序,按照提示进行安装。 3. **配置Eclipse**: 安装完毕后...

Global site tag (gtag.js) - Google Analytics