Reputation: 10651
I am trying to use JDK 7 with my Java project. JRE 7 is installed:
[Macintosh-2:~] Moby% java -version
java version "1.7.0_79"
Java(TM) SE Runtime Environment (build 1.7.0_79-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)
In Eclipse, I select the compiler Java 1.7:
and Java JRE 1.7 is installed:
But I get a facet version mismatch. In project facets, I cannot even choose Java 1.7:
Why does Java 1.7 not display in facets?
I have seen this post, and it does not help.
Upvotes: 1
Views: 2395
Reputation: 162851
Your configured path for your jre7
: /Library/Java/Home
is actually pointing to your jdk6 installation. Change /Library/Java/Home
to whatever the output of this command is: /usr/libexec/java_home
.
Upvotes: 1