简体   繁体   中英

how to install jdk 7 in eclipse

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.

You need to let know eclipse where the JRE 7 is, and you can do in this way :

  1. Go to Preferences pane of eclipse
  2. Open Java on the left pane
  3. Click on Installed JREs
  4. Add Button ---> Standard JVM and Next
  5. Insert : /Library/Java/JavaVirtualMachines/jdk1.7.0_06.jdk/Contents/Home in the JRE Home TextBox
  6. Next and Save the configuration

示例配置

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM