[opensuse-packaging] ant build error for java package - java.lang.NoClassDefFoundError
Hi! I tried to build a java program, during the packaging day last week, but didn't get it to build. See the error message below. If i change into the directory "columba-1.4-src" manually and execute ant within the directory, everything seems to build fine. So the problem might be, that ant is not executed in that directory, but the previous command changed into the directory (and the directory exists). What did I miss? see the package spec file: https://api.opensuse.org/source/home:lumnis/columba/columba.spec Any Help is much appreciatet. This is my first project on the OBS, and java programs are rare in the build service and not well documented howto build in opensuse, and there is a lack of java programs in opensuse in general. Cheers, Denny error message: Exception in thread "main" Exception while printStackTrace(): java.lang.NoClassDefFoundError: java/lang/System error: Bad exit status from /var/tmp/rpm-tmp.46996 (%build) --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Denny Beyer schrieb:
Hi! I tried to build a java program, during the packaging day last week, but didn't get it to build. See the error message below. If i change into the directory "columba-1.4-src" manually and execute ant within the directory, everything seems to build fine. So the problem might be, that ant is not executed in that directory, but the previous command changed into the directory (and the directory exists). What did I miss? see the package spec file: https://api.opensuse.org/source/home:lumnis/columba/columba.spec
I would try to build with the Java:Sun-Java-1.5 repositories, and remove the BuildRequires: j2sdk >= 1.6.0 line. I did so in my home repository https://build.opensuse.org/package/show?project=home%3Adigitaltomm&package=columba and it worked. The spec file is still missing useful %install and %file parts.
Any Help is much appreciatet. This is my first project on the OBS, and java programs are rare in the build service and not well documented howto build in opensuse, and there is a lack of java programs in opensuse in general.
That's true ;-) Greetings -- Thomas Schmidt (tschmidt [at] suse.de) SUSE Linux Products GmbH :: Research & Development :: Internal Tools "Don't Panic", Douglas Adams (1952 - 11.05.2001) --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (2)
-
Denny Beyer
-
Thomas Schmidt