Mailinglist Archive: opensuse-packaging (83 mails)
| < Previous | Next > |
Re: [opensuse-packaging] How to set javac target ?
- From: Thomas Schmidt <tschmidt@xxxxxxx>
- Date: Mon, 27 Oct 2008 13:12:35 +0100
- Message-id: <4905B033.1020300@xxxxxxx>
Stefan Dirsch wrote:
Your package only contains already compiled java code in a .jar file,
so there is no way to set a java version target. During compilation
the java target version can be set with:
javac -target 1.5
for example.
Greetings
--
Thomas Schmidt (tschmidt [at] suse.de)
SUSE Linux Products GmbH :: Research & Development :: Tools
"Don't Panic", Douglas Adams (1952 - 11.05.2001)
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx
Hi
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:
osc co home:sndirsch geotag
cd home:sndirsch/geotag
env -u BUILD_DIST osc build
Your package only contains already compiled java code in a .jar file,
so there is no way to set a java version target. During compilation
the java target version can be set with:
javac -target 1.5
for example.
Greetings
--
Thomas Schmidt (tschmidt [at] suse.de)
SUSE Linux Products GmbH :: Research & Development :: Tools
"Don't Panic", Douglas Adams (1952 - 11.05.2001)
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx
| < Previous | Next > |