Why won't eclipse switch the compiler to Java 8? -
I examined a Java project from SVN in Eclipse and realized that it requires Java 8 because it is a pulldown Uses. Eclipse addon and retrieval eclipse for Java 8 and the project is set as:
I saw that near bottom, it says that the default compiler compliance is 1.7, so I went to I have set up JRE in the project - & gt; Java Build Path: Still the compiler refuses Compile Lambda expression - I get an error that I think if I go ahead and type in Java 7 what will I get? This is the eclipse I am using Is it the only way to fix a fresh version of this, or is I missing something in the configuration? Secondly, in your screenshot above, your compiler compliance level Set to 1.7 This will treat all your code as if it is using Java 1.7 to fix its error, change it to 1.8. You will need Eclipse Luna to get support for Java 8, but if you want you can add it to Kepler SR2. Before you go any further, see Luna and I will try with the above suggestions before going forward. Once you take the Luna, then your Jiva-HOME variable Eelpse should be sufficient to identify JDK8. If you want to specify additional JDK, then you can add a new Java System Library by going to: / P> and a valid location for JDK 8. You can download JDK 8 of your platform org.eclipse.jdt.core.prefs and According to the set compiler compliance variable
1.8 , however, in the project - & gt; Preferences - & gt; Java Compiler, it still looks like this:
Edition: Kepler Service Release 1 Build ID: 20130919-0819
Project -> Properties - & gt; Java Build Path - & gt; Library - & gt; Add Library - & gt; Navigate to the Java System Library
Comments
Post a Comment