FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Java

 
 
LinkBack Thread Tools
 
Old 02-15-2011, 03:43 AM
Scott Howard
 
Default Help wanted in Java library packaging (JEBL2)

On Mon, Feb 14, 2011 at 7:45 AM, Andreas Tille <andreas@an3as.eu> wrote:
> $ figtree
> Exception in thread "main" java.lang.NoClassDefFoundError: jam/framework/MultiDocApplication
> * * * *at java.lang.ClassLoader.defineClass1(Native Method)
> * * * *at java.lang.ClassLoader.defineClass(ClassLoader.java :634)
> * * * *at java.security.SecureClassLoader.defineClass(Secure ClassLoader.java:142)
> * * * *at java.net.URLClassLoader.defineClass(URLClassLoader .java:277)
> * * * *at java.net.URLClassLoader.access$000(URLClassLoader. java:73)
> * * * *at java.net.URLClassLoader$1.run(URLClassLoader.java: 212)
> * * * *at java.security.AccessController.doPrivileged(Native Method)
> * * * *at java.net.URLClassLoader.findClass(URLClassLoader.j ava:205)
> * * * *at java.lang.ClassLoader.loadClass(ClassLoader.java:3 21)
> * * * *at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:294)
> * * * *at java.lang.ClassLoader.loadClass(ClassLoader.java:2 66)
> Caused by: java.lang.ClassNotFoundException: jam.framework.MultiDocApplication
> * * * *at java.net.URLClassLoader$1.run(URLClassLoader.java: 217)
> * * * *at java.security.AccessController.doPrivileged(Native Method)
> * * * *at java.net.URLClassLoader.findClass(URLClassLoader.j ava:205)
> * * * *at java.lang.ClassLoader.loadClass(ClassLoader.java:3 21)
> * * * *at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:294)
> * * * *at java.lang.ClassLoader.loadClass(ClassLoader.java:2 66)
> * * * *... 11 more

You need to define the classpath of figtree by one of two ways:

(1)
add to debian/rules:

export CLASSPATH=/usr/share/java/jebl.jar:/usr/share/java/jam.jar:/usr/share/java/freehep-graphics2d.jar:/usr/share/java/freehep-graphicsio.jar:/usr/share/java/freehep-graphicsio-pdf.jar:/usr/share/java/freehep-graphicsio-ps.jar:/usr/share/java/libfreehep-graphicsio-emf.jar:/usr/share/java/libfreehep-graphicsio-swf.jar:/usr/share/java/libfreehep-graphicsio-svg.jar:/usr/share/java/freehep-export.jar:/usr/share/maven-repo/org/freehep/freehep-graphicsio-emf/2.1.1/freehep-graphicsio-emf-2.1.1.jar:/usr/share/maven-repo/org/freehep/freehep-graphicsio-svg/2.1.1/freehep-graphicsio-svg-2.1.1.jar:/usr/share/maven-repo/org/freehep/freehep-graphicsio-swf/2.1.1/freehep-graphicsio-swf-2.1.1.jar:lib/iText.jar



and then delete the Class-Path: entry from debian/figtree.manifest


OR

(2)
make your debian/figtree.manifest:

usr/share/figtree/figtree.jar:
Class-Path: /usr/share/java/jebl.jar /usr/share/java/jam.jar
/usr/share/java/freehep-graphics2d.jar
/usr/share/java/freehep-graphicsio.jar
/usr/share/java/freehep-graphicsio-pdf.jar
/usr/share/java/freehep-graphicsio-ps.jar
/usr/share/java/libfreehep-graphicsio-emf.jar
/usr/share/java/libfreehep-graphicsio-swf.jar
/usr/share/java/libfreehep-graphicsio-svg.jar
/usr/share/java/freehep-export.jar
/usr/share/maven-repo/org/freehep/freehep-graphicsio-emf/2.1.1/freehep-graphicsio-emf-2.1.1.jar
/usr/share/maven-repo/org/freehep/freehep-graphicsio-svg/2.1.1/freehep-graphicsio-svg-2.1.1.jar
/usr/share/maven-repo/org/freehep/freehep-graphicsio-swf/2.1.1/freehep-graphicsio-swf-2.1.1.jar
lib/iText.jar
Main-class: figtree/application/FigTreeApplication



of course make the libraries "correct" libraries and not these hacks.
I've built and used the figtree application after making these
changes.

Regards,
Scott


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: AANLkTi=ZB9wY7NMWXAGeTWD_r+QHCK-RWTN8dtz5a-aE@mail.gmail.com">http://lists.debian.org/AANLkTi=ZB9wY7NMWXAGeTWD_r+QHCK-RWTN8dtz5a-aE@mail.gmail.com
 
Old 02-15-2011, 06:34 AM
Giovanni Mascellani
 
Default Help wanted in Java library packaging (JEBL2)

On 14/02/2011 10:12, Andreas Tille wrote:
>> Giovanni: can you help me out with this? Do you know why the links for
>> -swf -emf -svg don't work but the links for -pdf -ps do work?
>> The libraries you are looking for are located at:
>> http://people.debian.org/~tille/packages/figtree-help-wanted/
>> svn checkout svn://svn.debian.org/svn/debian-med/trunk/packages/libjam-java/trunk/

I'll have an exam in the next hours; I hope to give it a look this
afternoon (GMT +0100).

Giovanni.
--
Giovanni Mascellani <mascellani@poisson.phc.unipi.it>
Pisa, Italy

Web: http://poisson.phc.unipi.it/~mascellani
Jabber: g.mascellani@jabber.org / giovanni@elabor.homelinux.org
 
Old 02-15-2011, 10:15 AM
Giovanni Mascellani
 
Default Help wanted in Java library packaging (JEBL2)

Hi.

On 13/02/2011 21:33, Andreas Tille wrote:
>> then add the following to the classpath
>> ${deblib}/freehep-graphicsio-pdf.jar
>> ${deblib}/freehep-graphicsio-ps.jar
>
> I did so and this has solved 4 out of 10 errors. The remaining ones are
> concerning EMF, SVG and SWF (see build log at the URL above). I tried to
> fix it in an analogue manner as for PS and PDF ... but failed. I gazed
> for hours on the bits of code but failed to find the reason why PS and
> PDF now are OK but EMF, SVG and SWF are not working the same way.

Unfortunately, when the answer is trivial you can spend hours on the
code without finding anything. Executing 'ant -verbose' would have
helped: you were just mistyping the address of the library
('libfreehep-*' instead of 'freehep-*').

Ciao, Gio.
--
Giovanni Mascellani <mascellani@poisson.phc.unipi.it>
Pisa, Italy

Web: http://poisson.phc.unipi.it/~mascellani
Jabber: g.mascellani@jabber.org / giovanni@elabor.homelinux.org
 
Old 02-15-2011, 11:20 AM
Andreas Tille
 
Default Help wanted in Java library packaging (JEBL2)

Hi Gio,

On Tue, Feb 15, 2011 at 12:15:26PM +0100, Giovanni Mascellani wrote:
> Unfortunately, when the answer is trivial you can spend hours on the
> code without finding anything.

Yes, as always! Thanks for opening my eyes.

> Executing 'ant -verbose' would have
> helped: you were just mistyping the address of the library
> ('libfreehep-*' instead of 'freehep-*').

I'll keep the -verbose option for ant in mind.

So FigTree has only one remaining binary Jar included. It is iText.jar[1]
which seems to be a bit more complex to me. I'll probably come back with
some questions about this ...

Kind regards

Andreas.

[1] http://itextpdf.com/

--
http://fam-tille.de


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20110215122010.GB20113@an3as.eu">http://lists.debian.org/20110215122010.GB20113@an3as.eu
 

Thread Tools




All times are GMT. The time now is 04:52 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org