Roy Hinkley
Roy Hinkley

Reputation: 10651

Java 1.7 not an option in Eclipse Project Facets

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:

enter image description here

and Java JRE 1.7 is installed:

enter image description here

But I get a facet version mismatch. In project facets, I cannot even choose Java 1.7:

enter image description here

Why does Java 1.7 not display in facets?

I have seen this post, and it does not help.

Upvotes: 1

Views: 2395

Answers (1)

Asaph
Asaph

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

Related Questions