After I installed Yosemite, when I tried to open Eclipse (Java IDE) for the first time, I was prompted with the following error:
need to install legacy Java SE6 runtime
My solution:
First, install the latest Java update from the Java Control Panel in System Preferences
Then, I try to test my Java installation from the Terminal (find the built-in app in Launchpad) by typing the following command:
>>> java
And I get the following error:
No Java runtime present, requesting install.
So I downloaded the Java JDK (Java SE Development Kit 8u25) from:
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
The problem is solved after installing the downloaded package. I can now successfully open my Eclipse.









Good Article!