I quite excited when new OSX version codename Yosemite come out this fall.
But, I found problem with my eclipse application after upgrading to yosemite, eclipse won’t start and throw a message :
“you need Java 6 Legacy to run eclipse “.
It is quite annoying, because java is already installed (Java 1.7). My question is, why i should roll back to older version ?
Finally i found the answer for this problem.
Java 1.7 for OSX, by default just support CommandLine only.
So, I changed the configuration in order to make This java version can execute application such as eclipse.
The steps Are :
- Enter Java Installation Folder, mine in “/Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents”
- Open file Info.plist
- find this section <key>JVMCapabilities</key>
<array>
<string>CommandLine</string>
</array> - Change to this :<key>JVMCapabilities</key>
<array>
<string>JNI</string>
<string>BundledApp</string>
<string>WebStart</string>
<string>Applets</string>
<string>CommandLine</string>
</array> - Then Log out or restart your mac.
- Voila, Now My eclipse Running smoothly 😀
Jakarta, December 10th 2014
Aah Ahmad Kusumah