Interesting... If you are running 1.6.0_0 - there should be absolutely no
reason @Override is failing compilation...
That is, unless your task has a target/source attribute of 1.4 or
less...
For example:
You will need to search for build.xml or something like it to find the
task call..
There should be a build.xml somewhere in the project. Probably
/tmp/OpenbravoERP-2.50MP2/src-db/build
in your case, but Im not familiar with this project/product.
Inside the build.xml there will be an Ant target with a "javac" task.
On Wed, Jul 29, 2009 at 1:15 PM, jann1 wrote:
> Scot P. Flo
Scot P. Floess schrieb:
Which version of Java do you have on your system? If its stock 1.5+ it
should just work without using the target attribute...
java version 1.6.0_0
If all else fails I believe you can just do this:
where to this
to
/tmp/OpenbravoERP-2.50MP2/src-db/build/classes
[javac] --
[javac] 1. ERROR in
/tmp/OpenbravoERP-2.50MP2/src-db/src/com/openbravo/db/OpenbravoExcludeFilter.java
(at line 23)
[javac] @Override
[javac] ^
[javac] Syntax error, annotations are only available if
d/classes
>[javac] --
>[javac] 1. ERROR in
> /tmp/OpenbravoERP-2.50MP2/src-db/src/com/openbravo/db/OpenbravoExcludeFilter.java
> (at line 23)
>[javac] @Override
>[javac] ^
>[javac] Syntax error, annotations are only available if source level is
&g
, annotations are only available if source level is
5.0
[javac] --
[javac] 1 problem (1 error)
BUILD FAILED
/tmp/OpenbravoERP-2.50MP2/build.xml:493: The following error occurred while
executing this line:
/tmp/OpenbravoERP-2.50MP2/build.xml:462: The following error occurred while
/db/OpenbravoExcludeFilter.java
(at line 23)
[javac] @Override
[javac] ^
[javac] Syntax error, annotations are only available if source
level is 5.0
[javac] --
[javac] 1 problem (1 error)
BUILD FAILED
/tmp/OpenbravoERP-2.50MP2/build.xml:493: The