Eclipse error of non-recognition of static and default modifiers

1

Galerie eclipse does not recognize when I want to create a class within an interface with static and default modifiers. Note: I already have JAVA 8 jdk installed.

Right now, thank you very much. Att, Thiago Marques.

    
asked by anonymous 30.08.2016 / 23:10

1 answer

5

Hello, follow these steps:

1 - Window > Preferences > Java > Compiler: Checa is java 8 at Compiler compliance level.

2-Window>Preferences>Java>InstalledJREs:Checkifyouhavethelibrarysettojava8:

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

I hope I have helped ^^

    
30.08.2016 / 23:25