Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in Java by (9.5k points)

Below is my code to check of the JDK version 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)

The installed Java compiler is 1.7 and JRE 1.7 in my eclipse. But in the project facets, I’m not able to choose Java 1.7. 

Can anyone tell me why Java 1.7 is not even displayed in the project facets?

1 Answer

0 votes
by (19.7k points)

It’s possible the configured path for JRE7: /Library/Java/Home points to JDK6 installation. Check the output of the command /usr/libexec/java_home and set it to the following command Change /Library/Java/Home

Interested in Java? Check out this Java Certification by Intellipaat.   

Browse Categories