Which version of Java do you have on your system? If its stock 1.5+ it should just work without using the <javac> target attribute...

If all else fails I believe you can just do this:

<javac target="1.5" ...

Of course don't use the elipses as I have done above :)

On Wed, 29 Jul 2009, jann1 wrote:

Hello all,
opensuse11.1, openbravoERP-250MP2:
ant install.source produces the following error:
----
compile:
[javac] Compiling 1 source file 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 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 executing this line: /tmp/OpenbravoERP-2.50MP2/src-db/build.xml:42: Compile failed; see the compiler error output for details.
----
how to set the source level to 5.0 ????
or any ohter hints to get his running....
thx for ansering
Hermann


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-890-8117 (Work)

Chief Architect JPlate   http://sourceforge.net/projects/jplate
Chief Architect JavaPIM  http://sourceforge.net/projects/javapim

Architect Keros          http://sourceforge.net/projects/keros

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to