[opensuse-buildservice] Confusing (contradicting) error message about a java compiler
Hi, when I build a package with precompiled java classes on openSUSE_11.1 and beyond I get the following behaviour: With java 1.6.0 installed, following error: FHoSS.jar: de/fhg/fokus/hss/sh/data/ShDataParser.class FHoSS.jar: de/fhg/fokus/hss/sh/ShConstants.class FHoSS.jar: de/fhg/fokus/hss/sh/ShExperimentalResultException.class 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. error: Bad exit status from /var/tmp/rpm-tmp.99596 (%install) The message is confusing as it states that the classes for later than 1.5. As I build the rpm with java-1.6.0, that should match, but the advice is too use 1.5.0? 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. Is this correct? If I build the rpm with 1.5.0, there so many errors, that's not funny anymore. -- Richard -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Fri, Jan 09, Richard Bos wrote:
when I build a package with precompiled java classes on openSUSE_11.1 and beyond I get the following behaviour:
With java 1.6.0 installed, following error: FHoSS.jar: de/fhg/fokus/hss/sh/data/ShDataParser.class FHoSS.jar: de/fhg/fokus/hss/sh/ShConstants.class FHoSS.jar: de/fhg/fokus/hss/sh/ShExperimentalResultException.class 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. error: Bad exit status from /var/tmp/rpm-tmp.99596 (%install)
The message is confusing as it states that the classes for later than 1.5. As I build the rpm with java-1.6.0, that should match, but the advice is too use 1.5.0? 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.
Is this correct?
If I build the rpm with 1.5.0, there so many errors, that's not funny anymore.
I'd recommend to use export NO_BRP_CHECK_BYTECODE_VERSION=true In your specfile in the install section. That will switch off that broken check. See also: http://lists.opensuse.org/opensuse-buildservice/2008-12/msg00016.html and http://lists.opensuse.org/opensuse-buildservice/2008-12/msg00018.html -- With best regards, Carsten Hoeger
Hi Carsten, Op vrijdag 09 januari 2009 17:06:23 schreef Carsten Hoeger:
I'd recommend to use
export NO_BRP_CHECK_BYTECODE_VERSION=true
In your specfile in the install section. That will switch off that broken check.
thanks a lot works, that made it work again :) ! I opened a bug report, to have that check only enable for SLE, see: https://bugzilla.novell.com/show_bug.cgi?id=465005 -- Richard -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (2)
-
Carsten Hoeger
-
Richard Bos