Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
5.7k views
in Programming by
recategorized by
I am getting below error while compling code in Eclipse.

'<>' operator is not allowed for source level below 1.7

I have even changed my reference library to point to JDK 1.7.

1 Answer

0 like 0 dislike
by
selected by
 
Best answer
In Eclipse,

go to Project > Properties

From left hand side, click Java Compiler.

Make sure that "Enable project specific settings" is checked.

Select "Compiler compliance level" equilent to JDK library you have included in your build path.

In your case it should be 1.7.


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

1.4k questions

1.6k answers

866 comments

1.9k users

...