3

I downloaded and installed jdk7 on my mac and wanted to find out the actual content of it so that I can install it in eclipse. There is no jdk 7 related content in /System/Library/Java.

4

3 回答 3

17

你需要让eclipse知道JRE 7在哪里,你可以这样做:

  1. 转到 Eclipse 的首选项窗格
  2. 在左侧窗格中打开 Java
  3. 单击已安装的 JRE
  4. 添加按钮 ---> 标准 JVM 和下一步
  5. 插入:/Library/Java/JavaVirtualMachines/jdk1.7.0_06.jdk/Contents/Home在 JRE 主页文本框中
  6. 下一步并保存配置

示例配置

于 2012-08-20T18:50:18.597 回答
1

您需要将 JDK 7 添加到 Windows-> 首选项-> java -> 已安装 JRE 中的已安装 JRE 列表中。

于 2012-08-20T18:32:18.503 回答
0

它位于 /Library/Java/JavaVirtualMachines/... 所以在 /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home 您可以找到 bin 文件夹、lib 文件夹等。

于 2012-08-20T18:45:39.973 回答