{{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:

Java Script GET request Sample Code

fetch(' https://api.public.com/api ')   .then(response => response.json())   .then(data => console.log(data))   .catch(error =...