score:99

Accepted answer

the download from java.com which installs in /library/internet plug-ins is only the jre, for development you probably want to download the jdk from http://www.oracle.com/technetwork/java/javase/downloads/index.html and install that instead. this will install the jdk at /library/java/javavirtualmachines/jdk1.7.0_<something>.jdk/contents/home which you can then add to eclipse via preferences -> java -> installed jres.

score:7

you need to tell eclipse which jdk/jre's you have installed and where they are located.

this is somewhat burried in the eclipse preferences: in the window-menu select "preferences". in the preferences tree, open the node "java" and select "installed jre's". then click on the "add"-button in the panel and select "standard vm", "next" and for "jre home" click on the "directory"-button and select the top level folder of the jdk you want to add.

its easier than the description may make it look.

score:8

try editing your eclipse.ini file and add the following at the top

-vm
/library/java/javavirtualmachines/jdk1.7.0_09.jdk/contents/home

of course the path may be slightly different, looks like i have an older version...

i'm not sure if it will add itself automatically. if not go into

preferences --> java --> installed jres

click add and follow the instructions there to add it


Related Query

More Query from same tag