Mailinglist Archive: opensuse-java (4 mails)

< Previous Next >
Re: [opensuse-java] Java3D libraries not found during compilation process
  • From: Michal Vyskocil <mvyskocil@xxxxxxx>
  • Date: Thu, 1 Oct 2009 14:27:51 +0200
  • Message-id: <200910011427.58971.mvyskocil@xxxxxxx>
On Thursday 01 of October 2009 11:56:11 Denny Beyer wrote:
On Thursday 01 October 2009 09:11:28 Michal Vyskocil wrote:
On Thursday 01 of October 2009 08:14:33 Denny Beyer wrote:
Dear all,
I'm trying to build prune, a java application to display maps and
routes, which requires java3D for building.
Therefore, I added a link to my project to the one java3D package
available in obs. The install requirement issues has been solved that
way, but during compilation the libraries can not be found and I get a
lot of compile errors.

Could someone please help out here to find what's going on and how to
solve this issue?

Please fix prune.spec in your project first. In source dir you have a
prune_8.0_source.jar, but Source0: is %{name}-%{version}-source.tar.gz


Hi denny,

please reply to this ML. Thanks

Sorry, done it locally on my machine, but didn't do a commit. Done now.

Regards
Michal Vyskocil

Ah, assuming the java3d package is ok, could we include to the java
packages repo as well?

I'm not against it, but I did not understand the _binary_dist macro - what is
the reason for? And did you talk with original packager? It would be nice to
collaborate more with Packman.


Thanks for looking into it.

It's simple the CLASSPATH is not set, you can use build-classpath-directory
from jpackage-utils to set it. I also added -Dversion, because I found it not
empty, so ant produces dist/prune-${version}.jar.

Index: prune.spec
===================================================================
--- prune.spec (revision 3)
+++ prune.spec (working copy)
@@ -18,6 +18,7 @@
BuildRequires: ant-nodeps
BuildRequires: java3d
BuildRequires: update-desktop-files
+BuildRequires: jpackage-utils
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: %{name}_%{version}_source.jar
Source1: %{name}.desktop
@@ -45,7 +46,8 @@
%build
%__install -m 755 %{SOURCE2} %{_builddir}/%{name}-%{version}/
# Start building with ant
-%ant dist
+export CLASSPATH=$(build-classpath-directory /usr/share/java/java3d/)
+%ant -Dversion=%{version} dist

%install
export NO_BRP_CHECK_BYTECODE_VERSION=true

Regards
Michal Vyskocil
< Previous Next >
List Navigation
This Thread
Follow Ups