[opensuse-packaging] java version issue in factory - java 1.5 or lower
Hello all, i build a package for a java program in the build service, it works alright on most repositories except for Factory. Following issue: >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. Considering that java 1.6 is out for quite some time now (sun & openjdk), I wonder why java applications are forced to be compiled for anything lower than 1.6, rather that forcing them to be compiled for AT LEAST 1.6? I understand some of the libraries require an older version for compatibility, but this is a desktop app and there the latest java (sun 1.6.0u10 or equiv. openjdk) should be default instead. Ah, and btw: Still waiting for sun java 1.6u10 coming through online update. Any idea anybody when that will be? Thanks, Denny -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Sunday 16 of November 2008 18:09:23 Denny Beyer wrote:
Hello all, i build a package for a java program in the build service, it works alright on most repositories except for Factory. Following issue: >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. Considering that java 1.6 is out for quite some time now (sun & openjdk), I wonder why java applications are forced to be compiled for anything lower than 1.6, rather that forcing them to be compiled for AT LEAST 1.6?
It's necessary for SLES. You can disable this test export NO_BRP_CHECK_BYTECODE_VERSION=true to %install phase. I added it to add this to wiki [1]
Ah, and btw: Still waiting for sun java 1.6u10 coming through online update. Any idea anybody when that will be?
As this is not a security update, the u10 was updated in Factory only. [1] http://en.opensuse.org/Java/Packaging/Cookbook#Troubleshooting Regards Michal Vyskocil -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Thanks you very much for the reply, I was almost giving up hope for an answer. [...]
It's necessary for SLES. You can disable this test
export NO_BRP_CHECK_BYTECODE_VERSION=3Dtrue Thanks, will do that then.
to %install phase. I added it to add this to wiki [1] Looks good to me. Would have done it myself, but ... [...] [1] http://en.opensuse.org/Java/Packaging/Cookbook#Troubleshooting [...]
The packages are building now and according to build log file, also written. However, in the project overview/package overview the newly build packages are not shown and a "failed" still appears for factory. Regards, Denny
Regards Michal Vyskocil
-- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (2)
-
Denny Beyer
-
Michal Vyskocil