Chris Daniel
Chris Daniel

Reputation: 1197

Error creating new Java Project in Eclipse

I have Eclipse Kepler. I recently deleted my JRE 7 folder and I'm now using the JDK 8. When I create a new project I get a caution sign with something related to compliance level:

enter image description here

What do I need to do to encounter the problem?

Upvotes: 1

Views: 3828

Answers (2)

Konstantin Yovkov
Konstantin Yovkov

Reputation: 62874

Kepler doesn't have 1.8 compliance support, so you have to update to a newer version of Eclipse (like Juno).

When you do, you have to make sure that you have properly pointed the JDK installation directory in Eclipse. You can navigate to WindowPreferencesJavaInstalled JREs, add the JDK8 environment (and select it as default, as you don't have any other, since you have deleted 1.7 one).

Installed JREs

Then, when you navigate to WindowPreferencesJavaCompiler, you should be able to select 1.8 as "Compliance level", as shown here:

enter image description here

Upvotes: 3

greg-449
greg-449

Reputation: 111217

Eclipse Kepler does not support Java 8. You need to move to the current release of Eclipse (Eclipse Mars) for full Java 8 support.

Upvotes: 1

Related Questions