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-13-2011, 11:46 PM
Scott Howard
 
Default Help wanted in Java library packaging (JEBL2)

On Sun, Feb 13, 2011 at 3:33 PM, Andreas Tille <andreas@an3as.eu> wrote:
> 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.
>
> Hope this will be the last iteration of this problem and thanks for your
> help in any case

I got it to build by including the full path to the jars (didn't use
the symlinks in /usr/share/java). For some reason it doesn't like the
symlinks for the -emf -svg and -swf packages.

I added:

/usr/share/maven-repo/org/freehep/freehep-graphicsio-swf/2.1.1/freehep-graphicsio-swf-2.1.1.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

to the classpath (which is not ideal as any change in version number
will break your app) [1]


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/



showard@sk1m:~/debian-med-java/jebl2-0.0.r6/figtree-1.3.1$ ls -l
/usr/share/java/freehep-graphicsio-{emf,svg,swf,ps,pdf}*
lrwxrwxrwx 1 root root 87 2011-02-13 17:44
/usr/share/java/freehep-graphicsio-emf-2.1.1.jar ->
../maven-repo/org/freehep/freehep-graphicsio-emf/2.1.1/freehep-graphicsio-emf-2.1.1.jar

lrwxrwxrwx 1 root root 87 2011-02-13 17:44
/usr/share/java/freehep-graphicsio-emf.jar ->
../maven-repo/org/freehep/freehep-graphicsio-emf/2.1.1/freehep-graphicsio-emf-2.1.1.jar

lrwxrwxrwx 1 root root 87 2011-02-13 17:44
/usr/share/java/freehep-graphicsio-pdf-2.1.1.jar ->
../maven-repo/org/freehep/freehep-graphicsio-pdf/2.1.1/freehep-graphicsio-pdf-2.1.1.jar

lrwxrwxrwx 1 root root 87 2011-02-13 17:44
/usr/share/java/freehep-graphicsio-pdf.jar ->
../maven-repo/org/freehep/freehep-graphicsio-pdf/2.1.1/freehep-graphicsio-pdf-2.1.1.jar

lrwxrwxrwx 1 root root 85 2011-02-13 17:44
/usr/share/java/freehep-graphicsio-ps-2.1.1.jar ->
../maven-repo/org/freehep/freehep-graphicsio-ps/2.1.1/freehep-graphicsio-ps-2.1.1.jar

lrwxrwxrwx 1 root root 85 2011-02-13 17:44
/usr/share/java/freehep-graphicsio-ps.jar ->
../maven-repo/org/freehep/freehep-graphicsio-ps/2.1.1/freehep-graphicsio-ps-2.1.1.jar

lrwxrwxrwx 1 root root 87 2011-02-13 17:44
/usr/share/java/freehep-graphicsio-svg-2.1.1.jar ->
../maven-repo/org/freehep/freehep-graphicsio-svg/2.1.1/freehep-graphicsio-svg-2.1.1.jar

lrwxrwxrwx 1 root root 87 2011-02-13 17:44
/usr/share/java/freehep-graphicsio-svg.jar ->
../maven-repo/org/freehep/freehep-graphicsio-svg/2.1.1/freehep-graphicsio-svg-2.1.1.jar

lrwxrwxrwx 1 root root 87 2011-02-13 17:44
/usr/share/java/freehep-graphicsio-swf-2.1.1.jar ->
../maven-repo/org/freehep/freehep-graphicsio-swf/2.1.1/freehep-graphicsio-swf-2.1.1.jar

lrwxrwxrwx 1 root root 87 2011-02-13 17:44
/usr/share/java/freehep-graphicsio-swf.jar ->
../maven-repo/org/freehep/freehep-graphicsio-swf/2.1.1/freehep-graphicsio-swf-2.1.1.jar




[1]
--- figtree-1.3.1.orig/build.xml
+++ figtree-1.3.1/build.xml
@@ -36,7 +36,7 @@
<target name="compile" depends="init">
<!-- Compile the java code from ${src} into ${build} -->
<javac source="1.5" target="1.5" srcdir="${src}" destdir="${build}"
- classpath="${deblib}/jebl.jar:${deblib}/jam.jar:${deblib}/freehep-graphics2d.jar:${deblib}/freehep-graphicsio.jar:${deblib}/freehep-graphicsio-pdf.jar:${deblib}/freehep-graphicsio-ps.jar:${deblib}/libfreehep-graphicsio-emf.jar:${deblib}/libfreehep-graphicsio-swf.jar:${deblib}/libfreehep-graphicsio-svg.jar:${deblib}/freehep-export.jar:${lib}/iText.jar">
+ classpath="${deblib}/jebl.jar:${deblib}/jam.jar:${deblib}/freehep-graphics2d.jar:${deblib}/freehep-graphicsio.jar:${deblib}/freehep-graphicsio-pdf.jar:${deblib}/freehep-graphicsio-ps.jar:${deblib}/libfreehep-graphicsio-emf.jar:/usr/share/maven-repo/org/freehep/freehep-graphicsio-emf/2.1.1/freehep-graphicsio-emf-2.1.1.jar:${deblib}/libfreehep-graphicsio-swf.jar:${deblib}/libfreehep-graphicsio-svg.jar:${deblib}/freehep-export.jar:${lib}/iText.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">
<include name="figtree/**"/>
</javac>
<copy todir="${build}" verbose="true">


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: AANLkTimsKa8A_WTGxW1Ahf=wx6cNf49_YZozbuMEMneo@mail .gmail.com">http://lists.debian.org/AANLkTimsKa8A_WTGxW1Ahf=wx6cNf49_YZozbuMEMneo@mail .gmail.com
 
Old 02-14-2011, 08:12 AM
Andreas Tille
 
Default Help wanted in Java library packaging (JEBL2)

On Sun, Feb 13, 2011 at 07:46:27PM -0500, Scott Howard wrote:
> I added:
>
> /usr/share/maven-repo/org/freehep/freehep-graphicsio-swf/2.1.1/freehep-graphicsio-swf-2.1.1.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
>
> to the classpath (which is not ideal as any change in version number
> will break your app) [1]

Uhmm. Not ideal? I'd call this really hackish workaround. Something
seems to be very broken in the freehep-graphicsio-* packages. Some of
the work as expected and some don't.

> 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/

Just provided them at the same place - no need for checking out and getting
source package.

> --- figtree-1.3.1.orig/build.xml
> +++ figtree-1.3.1/build.xml
> @@ -36,7 +36,7 @@
> <target name="compile" depends="init">
> <!-- Compile the java code from ${src} into ${build} -->
> <javac source="1.5" target="1.5" srcdir="${src}" destdir="${build}"
> - classpath="${deblib}/jebl.jar:${deblib}/jam.jar:${deblib}/freehep-graphics2d.jar:${deblib}/freehep-graphicsio.jar:${deblib}/freehep-graphicsio-pdf.jar:${deblib}/freehep-graphicsio-ps.jar:${deblib}/libfreehep-graphicsio-emf.jar:${deblib}/libfreehep-graphicsio-swf.jar:${deblib}/libfreehep-graphicsio-svg.jar:${deblib}/freehep-export.jar:${lib}/iText.jar">
> + classpath="${deblib}/jebl.jar:${deblib}/jam.jar:${deblib}/freehep-graphics2d.jar:${deblib}/freehep-graphicsio.jar:${deblib}/freehep-graphicsio-pdf.jar:${deblib}/freehep-graphicsio-ps.jar:${deblib}/libfreehep-graphicsio-emf.jar:/usr/share/maven-repo/org/freehep/freehep-graphicsio-emf/2.1.1/freehep-graphicsio-emf-2.1.1.jar:${deblib}/libfreehep-graphicsio-swf.jar:${deblib}/libfreehep-graphicsio-svg.jar:${deblib}/freehep-export.jar:${lib}/iText.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">
> <include name="figtree/**"/>
> </javac>
> <copy todir="${build}" verbose="true">

Thanks for this workaround I would never have imagined. Any real
solution would be helpful - at least I can now finally test jam-lib and
jebl and upload them to new. Meanwhile I hope that freehep will be
fixed (I fo not even have an idea how to properly do a bug report).

Kind regards

Andreas.

--
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: 20110214091259.GC15947@an3as.eu">http://lists.debian.org/20110214091259.GC15947@an3as.eu
 
Old 02-14-2011, 11:45 AM
Andreas Tille
 
Default Help wanted in Java library packaging (JEBL2)

On Sun, Feb 13, 2011 at 07:46:27PM -0500, Scott Howard 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/

I followed Scott's hint and finally got a figtree deb package with the
quite ugly hack to specify the direct location of the jars in question.
I mentioned this very version in the Build-Depends to at least have a
chance that this works. However I seem to have not understood the
library building process yet because when trying to run figtree the
jam-lib (and probably others) are not found:

$ 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

All *.debs I used are at the location mentioned above.

Thanks for any help

Andreas.

--
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: 20110214124521.GD15947@an3as.eu">http://lists.debian.org/20110214124521.GD15947@an3as.eu
 

Thread Tools




All times are GMT. The time now is 07:40 AM.

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