Reputation: 1197
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:
What do I need to do to encounter the problem?
Upvotes: 1
Views: 3828
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 Window
→ Preferences
→ Java
→ Installed JREs
, add the JDK8 environment (and select it as default, as you don't have any other, since you have deleted 1.7 one).
Then, when you navigate to Window
→ Preferences
→ Java
→ Compiler
, you should be able to select 1.8
as "Compliance level", as shown here:
Upvotes: 3
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