4

I have a mac and I recently installed Java 7 on it. However, my question is, how do I let Eclipse (Juno) know about this installation. I went to the preferences menu and selected Java > Installed JREs to get to this screen

enter image description here

I've clicking the add button but I'm not sure what I need to add:

enter image description here

I would have thought that I should add the .jdk file but it eclipse doesn't like that.

Nosrettap
  • 10,940
  • 23
  • 85
  • 140

1 Answers1

11

For the latest version (07) you can type in /Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home/ instead of using the directory... button

steffan
  • 619
  • 1
  • 9
  • 18