Non-recognition eclipse error of Static and default modifiers

Asked

Viewed 92 times

1

People the eclipse does not recognize when I want to create a class within an interface with Static and default modifiers. Obs: I already have JAVA 8 jdk installed.

inserir a descrição da imagem aqui

Thank you very much. Att, Thiago Marques.

  • What’s the mistake the eclipse says it has?

  • What is the eclipse version?

  • Not from the error, it only says to delete the default expression it does not recognize. The eclipse version is Kepler Service Release 1

1 answer

5


Hello, follow the following steps:

1 - Window > Preferences > Java > Compiler: Czech if you have java 8 in Compiler compliance level. inserir a descrição da imagem aqui

2 - Window > Preferences > Java > Installed Jres: Czech if you have the library set for java 8: inserir a descrição da imagem aqui

3 - After adjusting everything, gives a clean in the project: Project > Clean... > Clean all Projects

I hope I’ve helped ^^

  • It does not appear 1.8, it goes up to 1.7, but I already have jdk java 8, as I do to enable and appear 1.8?

  • You need to have eclipse Luna at least, previous versions do not support java 8.

  • I’m kind of bad for these stops, I’m not from the T.I area, just download the List in which version?

  • Do the following, check your version first: Help > About Eclipse. Print or paste the displayed text.

  • Eclipse IDE for Java Developers Version: Kepler Service Release 1 Build id: 20130919-0819 (c) Copyright Eclipse Contributors and others 2000, 2013. All Rights reserved. Visit http://eclipse.org/ This product includes software developed by the Apache Software Foundation http://apache.org/

  • how mando screen shot? n appears here

  • Okay, so the problem is you’re using the Kepler eclipse. Download the eclipse Neon (http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/neonr) and open your project in it. Then java 8 will appear on the Pilot.

  • I’ll download, thank you.

  • It worked! Thank you.

  • Aeww! You’re welcome ^^

Show 5 more comments

Browser other questions tagged

You are not signed in. Login or sign up in order to post.