Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I add the Java 7 JRE to Eclipse on my mac?

Tags:

java

eclipse

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.

like image 259
Nosrettap Avatar asked Dec 21 '22 16:12

Nosrettap


1 Answers

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

like image 104
steffan Avatar answered Dec 24 '22 02:12

steffan