{{theTime}}

Search This Blog

Total Pageviews

Syntax error, annotations are only available if source level is 1.5 or greater

java.lang.Error: Unresolved compilation problem: 
Syntax error, annotations are only available if source level is 1.5 or greater

at com.devinsider.examboard.server.GreetingServiceImpl.<init>(GreetingServiceImpl.java:10)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)

-- Goto Eclipse Build Path and change the Compiler version to 1.5 or greater.

No comments:

Cucumber Eclipse sample program

Cucumber Eclipse SetupCreate Eclipse Maven Project Open pom.xml Goto Dependencies Add GroupId: info.cukes, Artifact Id: cucumber-java, Versi...