
If you have XCode installed you can now find the JAVA_HOME directory with this command: I have no way of verifying this any more, but on Mac OS X 10.5, 10.6, and 10.7, I'm pretty sure this is where the JDK JAVA_HOME was located: Library/Internet\ Plug-Ins/ugin/Contents/Home/bin/java -version Older Mac OS X systems

This is confirmed by this Oracle Java/JRE documentation page, which shows that you can demonstrate this by running this command in the Mac Terminal: Library/Internet Plug-Ins/ugin/Contents/Home If you've installed the Oracle JRE (as opposed to the JDK), JAVA_HOME for it appears to be located here instead: Of course that will vary by the JDK version you have installed. Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/ Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home This has changed over time, but if you're using Mac OS X 10.9 or newer (now macOS), your JDK/SDK JAVA_HOME location for Java 8 will be something like this: Therefor I assume that in my case even the 64 bit version of Eclipse ends up with the old version and won't start.Java/Mac FAQ: Where is JAVA_HOME located on Mac OS X (macOS) systems? macOS JDK location I only get the result 1.8 if I specify the whole path to java, which is in the plugins directory mentioned in earlier posts. However in my case I always get the result 1.6, even though the version 1.8 is installed as well. (I'm relying here on that what's written on the box is really what's in the box.)īut all those guys having problems with Eclipse usually state that when they type the command 'java -version' in the terminal that the latest version gets found and therefor the result is a java version greater than 1.6. So I made sure to download the 64 bit version.

Usually the answer is that you have to use the 64 bit version, not the 32 bit version. I found that several people asked the question of different sites about why Eclipse doesn't find the right version. Then why won't Eclipse find it and instead show me at start up that it requires Java SDK 1.7 or above and it cannot run on the version 1.6 it found? They're both active, but only come into play when needed. Programs requiring one or the other will use the one they need.

You don't need to make either the default version.
