OS X Mavericks installation on my Macbook Pro Ratina went smooth. So far I loved using it. But recently noticed some issue with Java and Eclipse.
When I clicked on Eclipse Shortcut, it shows message: No Java runtime present, requesting install.
Another must read: Where is Java installed on my Mac OS/X system?
Then I manually installed the jdk (1.7.45) on my mac, it seems that the installation works fine. When the installation done, I open the terminal and type “java -version” as well, it also shows the same error: No Java runtime present, requesting install.
This is in part due to Oracle’s missing definitions of the JRE7 VM capabilities. In case you don’t want to install JRE6 at all and simply use JRE7 without symlinking it to the JRE6 either you can do the following:
Step-1
Go to below location
bash-3.2$ pwd /Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents
Step-2
Open Info.plist
and Search for below lines
<key>JVMCapabilities</key> <array> <string>CommandLine</string> </array>
Step-3
Replace those with below lines
<key>JVMCapabilities</key> <array> <string>JNI</string> <string>BundledApp</string> <string>WebStart</string> <string>Applets</string> <string>CommandLine</string> </array>
Hope it helps. There is one related Eclipse bug which I found.