how to install jdk 7 in eclipse

eclipse, java-7, macos

Solution

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

- Go to Preferences pane of eclipse

- Open Java on the left pane

- Click on Installed JREs

- Add Button ---> Standard JVM and Next

- Insert : `/Library/Java/JavaVirtualMachines/jdk1.7.0_06.jdk/Contents/Home` in the JRE Home TextBox

- Next and Save the configuration

Problem

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.

Original source