Thursday, 5 September 2013

Annotations are only available if source level is 5.0 syntax errror java

Annotations are only available if source level is 5.0 syntax errror java

I am compiling a normal java program with @Override annotation(I
downloaded a source from internet from some tutorial). Now the javac is
complaing that
annotations are only available if source level is 5.0
Every question on SO or other site relates this to eclipse but I am not
using eclipse. I am compiling the code from command line. How can I
resolve the problem.
Here is some information that may be useful:
$java -version
java version "1.6.0_13-b03
(some other not so useful info)

No comments:

Post a Comment