I used to have Eclipse configured well and work fine before. But I just uninstalled it and installed Eclipse Juno again on my Mac OS 10.10 today. But I kept getting this err
In eclipse click Window –> Show view –> Servers
Once you are in servers view double click configured server to open its configuration and click Runtime environment link (in the left side).
Select the JRE and click finish.
Hope it help you