How to setup open JDK on Mac OS X in Eclipse
Open Eclipse preferences and go to the installed JREsClick the ‘Add...’ a new one, and browse to the base of the JDK, in this example /Library/Java/JavaVirtualMachines. You will see an error message that you have not selected a target that is a JDK root.
Manually type in the last part of the JRE home (/1.7.0.jdk/Contents/home).
How do you know the final part of the path? The 1.7.0.jdk is the file name of the JDK. The rest of the path can be found by right clicking on the 1.7.0.jdk in finder and select ‘Show package Contents’ then go find the home folder
You should probably see something like this when you Show the Package Contents:
Finally You should be able to give you JDK a name and click the ‘Finish’ button
No comments:
Post a Comment