I keep getting the following message when I try to open Eclipse Juno on my Macbook Pro:
Incompatible JVM Version 1.6.0_65 of the JVM is not suitable for this product. Version: 1.7 or greater is required.
Every answer to this question suggests to download and install a 64-bit version of Eclipse. But I already have the 64 bit version and so that's not the solution I'm expecting. This is the name of the file that I downloaded from eclipse site:
eclipse-standard-luna-R-macosx-cocoa-x86_64.tar.gz
You can see that it is the 64 bit version only. Correct me if I'm wrong.
java -version command returns this:
java version "1.6.0_65"
javac -version command returns this:
javac 1.6.0_65
But the Java control panel shows the following message:
Your system has the recommended version of Java.
Java 7 Update 67
So I have both version 6 and 7 on my machine. How do I force eclipse to use that version 7?