[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help wanted in Java library packaging (JEBL2)



On Sat, Feb 12, 2011 at 1:45 PM, Andreas Tille <andreas@an3as.eu> wrote:
> Hi,
>
> I uploaded two source packages to
>
>   http://people.debian.org/~tille/packages/figtree-help-wanted/
>
> One is the just ITPed (#613080) and the other one is FigTree which is
> actually my target package.  The originial tarball contained a jebl.jar
> which I stripped from the tarball.  I assumed that making figtree
> Build-Depend from libjebl2-java sufficient to let java find the classes
> in JEBL - which is not the case unfortunately.

The problem is in build.xml:
		<javac source="1.5" target="1.5" srcdir="${src}" destdir="${build}"
		       classpath="${lib}/jebl.jar:${lib}/jam.jar:${lib}/freehep.jar:${lib}/iText.jar:${lib}/quaqua.jar:${lib}/jwt/servlet-api-2.5-6.0.2.jar:${lib}/jwt/jwt-3.1.7pre1.jar">

while ${lib} is defined as "lib/" in the source tree

the classpath should be changed to:
classpath="/usr/share/java/jebl.jar:/usr/share/java/jam.jar:/usr/share/java/freehep.jar:/usr/share/java/iText.jar:
  etc...    ">

Also, probably should avoid using specific library versions but use
the debian provided symlinks.

Also, you B-D on libtrove-java in the jebl and jam libraries and the
FigTree package, but the binary packages themselves don't depend on
them (and don't use any symbols from them). You can use the
"java-propose-classpath" to help hint what symbols are used. I'm not
familiar with packages using trove, so you might be using it
correctly.

Cheers,
Scott


Reply to: