Question: I get the following error when I open Eclipse:

Incompatible JVM : Version 1.6.0\_65 of the JVM is not suitable for this product.
Version 1.7 or greater is required.

My eclipse.ini file has 
`-vm /System/Library/Java/JavaVirtualMachines/1.6.0.jdk` 
(of course before -vmargs) 

I have been trying to update to Java8 so I can get 1.8.0.jdk 
but it is not appearing at the above location, nor can I find it elsewhere. 

When I run `java --version`, I get the follow output: 

java version "1.8.0\_05"
Java(TM) SE Runtime Environment (build 1.8.0\_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)

Answer: 
As explained by @Anthony Accioly **check for correct version of JDK** like :-

If `/usr/libexec/java_home -v 1.8.0_05 --exec javac -version` returns the correct version, then your problem is with:

```
/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK

```

With a privileged user execute:

```
cd /System/Library/Frameworks/JavaVM.framework/Versions/
rm CurrentJDK
ln -s /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/ CurrentJDK

```

For **more detail** on this click here [After upgrading to Java8, javac still shows 1.7](https://stackoverflow.com/questions/23202516/after-upgrading-to-java8-javac-still-shows-1-7)

Also check [Error launching Eclipse 4.4 “Version 1.6.0\_65 of the JVM is not suitable for this product. - stackoverflow](https://stackoverflow.com/questions/24600860/error-launching-eclipse-4-4-version-1-6-0-65-of-the-jvm-is-not-suitable-for-thi)
From the command line (Applications -> Utilities -> Terminal), run the command

```
/usr/libexec/java_home

```

This will return the location of the 1.8 JDK. Incidentally, this *should* match

```
echo $JAVA_HOME

```

if that variable is set.