Mailinglist Archive: opensuse-packaging (83 mails)

< Previous Next >
Re: [opensuse-packaging] How to set javac target ?
  • From: Michal Vyskocil <mvyskocil@xxxxxxx>
  • Date: Fri, 31 Oct 2008 17:10:19 +0100
  • Message-id: <200810311710.19863.mvyskocil@xxxxxxx>
On Monday 27 of October 2008 12:45:50 Stefan Dirsch wrote:
Hi
Hi Stefan,

I'm wondering how to set the javac target in a specfile.

[...]
ERROR: the files above contain java bytecode for something later than java
1.5, ERROR: please set the javac target to 1.5 or lower.

BTW, the error message contradicts itself ("later" means "lower"
version number?).

--> /usr/lib/rpm/brp-check-bytecode-version

How to reproduce:

You have two possibilities:

Type
export NO_BRP_CHECK_BYTECODE_VERSION="true"

somewhere in %install section. This turn off that test.

Use
ant -Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 ...

Michal Vyskocil
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >
References