From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: Re: DiTAA error under Ubuntu Date: Thu, 13 Aug 2009 11:04:04 +0200 Message-ID: <87eirgccfv.fsf@mundaneum.com> References: <87eiriwf8u.fsf@mundaneum.com> <10452.1250011855@alphaville.usa.hp.com> <10676.1250012412@alphaville.usa.hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Nick, Eric, Sorry for answering late -- while you were prompt at replying. Have been out for one day. Nick Dokos wrote: > Nick Dokos wrote: >> Sebastien_Vauban wrote: >> >>> I'm trying to use the DiTAA tool for making easy graphics in a couple of >>> minutes. >>> >>> Though, I've this error when exporting to LaTeX: >>> >>> --8<---------------cut here---------------start------------->8--- >>> [sva@mundaneum] ...texmf/tex/latex>java -jar /home/sva/Downloads/emacs/= site >>> -lisp/org-mode/contrib/scripts/ditaa.jar /tmp/org-ditaa13182XLS archi.= png >>> >>> DiTAA version 0.6b, Copyright (C) 2004 Efstathios Sideris >>> >>> Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load >>> library: /usr/lib/jvm/java-6-openjdk/jre/lib/i386/xawt/libmawt.so >> >> From a quick look at synaptic, it seemed `openjdk-6-jre-lib' would be the >> most likely candidate package to contain libmawt.so, but it wasn't there. Here is the situation of Java-related packages on my system so far: i A bootchart-java - Boot process performance analyser (vi= suali i A ca-certificates-java - Common CA certificates (JKS keystore) i A default-jre-headless - Standard Java or Java compatible Runt= ime (headless) i A java-common - Base of all Java packages i A java-gcj-compat - Java runtime environment using GIJ i A java-gcj-compat-headless - Java runtime environment using GIJ (h= eadle i A java-gcj-compat-headless - Java runtime environment using GIJ (h= eadless version) i A libaccess-bridge-java - Java Access Bridge for GNOME i A libbcel-java - Analyze, create, and manipulate (bina= ry) J i A libcommons-cli-java - API for working with the command line= argu i A libcommons-compress-java - Java API for working with tar, zip an= d bzi i A libcommons-lang-java - Extension of the java.lang package i A liblog4j1.2-java - Logging library for java i A liblog4j1.2-java-gcj - Logging library for java (native code) i A libmx4j-java - An open source implementation of the = JMX(T i A libregexp-java - regular expression library for Java i A openjdk-6-jre-headless - OpenJDK Java runtime, using Hotspot J= IT (headless) i A openjdk-6-jre-lib - OpenJDK Java runtime (architecture in= dependent libraries) i A tzdata-java - time zone and daylight-saving time da= ta fo p default-jdk - Standard Java or Java compatible Deve= lopment Kit p default-jdk-builddep - Standard Java or Java compatible buil= d dependencies p openjdk-6-dbg - Java runtime based on OpenJDK (debugg= ing symbols) p openjdk-6-demo - Java runtime based on OpenJDK (demos = and examples) p openjdk-6-doc - OpenJDK Development Kit (JDK) documen= tation p openjdk-6-jdk - OpenJDK Development Kit (JDK) p openjdk-6-jre - OpenJDK Java runtime, using Hotspot J= IT p openjdk-6-jre-zero - Alternatve JVM for OpenJDK, using Zer= o/Shark p openjdk-6-source - OpenJDK Development Kit (JDK) source = files p openjdk-6-source-files - OpenJDK 6 source files (used as a bui= ld dependency) p sun-java5-bin - Sun Java(TM) Runtime Environment (JRE= ) 5.0 (architecture dependent f p sun-java5-demo - Sun Java(TM) Development Kit (JDK) 5.= 0 demos and examples p sun-java5-doc - Sun JDK(TM) Documention -- integratio= n installer p sun-java5-fonts - Lucida TrueType fonts (from the Sun J= RE) p sun-java5-jdk - Sun Java(TM) Development Kit (JDK) 5.0 p sun-java5-jre - Sun Java(TM) Runtime Environment (JRE= ) 5.0 (architecture independent p sun-java5-plugin - The Java(TM) Plug-in, Java SE 5.0 p sun-java5-source - Sun Java(TM) Development Kit (JDK) 5.= 0 source files p sun-java6-bin - Sun Java(TM) Runtime Environment (JRE= ) 6 (architecture dependent fil p sun-java6-demo - Sun Java(TM) Development Kit (JDK) 6 = demos and examples p sun-java6-doc - Sun JDK(TM) Documention -- integratio= n installer p sun-java6-fonts - Lucida TrueType fonts (from the Sun J= RE) p sun-java6-javadb - Java(TM) DB, Sun Microsystems' distri= bution of Apache Derby p sun-java6-jdk - Sun Java(TM) Development Kit (JDK) 6 p sun-java6-jre - Sun Java(TM) Runtime Environment (JRE= ) 6 (architecture independent f p sun-java6-plugin - The Java(TM) Plug-in, Java SE 6 p sun-java6-source - Sun Java(TM) Development Kit (JDK) 6 = source files p sun-javadb-client - Java DB client p sun-javadb-common - Java DB common files p sun-javadb-core - Java DB core p sun-javadb-demo - Java DB demo p sun-javadb-doc - Java DB documentation p sun-javadb-javadoc - Java DB javadoc v java-runtime-headless - v java1-runtime-headless - v java2-runtime-headless - v java5-runtime-headless - v java6-runtime-headless - (from a few `aptitude search XXX' commands where XXX =3D headless, java, jd= k, sun-) For the records: --8<---------------cut here---------------start------------->8--- > which java /usr/bin/java > ls -lia /usr/bin/java 94778 lrwxrwxrwx 1 root root 22 Aug 6 15:28 /usr/bin/java -> /etc/alternat= ives/java* --8<---------------cut here---------------end--------------->8--- > ... and I should have continued: you probably have headless already, since > the library depends on it; in which case, a cunningly placed symlink shou= ld > do the trick. I indeed already have libmawt.so there: ./usr/lib/jvm/java-6-openjdk/jre/lib/i386/headless/libmawt.so You propose me to link link /usr/lib/jvm/java-6-openjdk/jre/lib/i386/headless/libmawt.so \ /usr/lib/jvm/java-6-openjdk/jre/lib/i386/xawt/libmawt.so That's it? It can't hurt... Trying it... --8<---------------cut here---------------start------------->8--- cd /usr/lib/jvm/java-6-openjdk/jre/lib/i386/ sudo mkdir xawt sudo link /usr/lib/jvm/java-6-openjdk/jre/lib/i386/headless/libmawt.so \ /usr/lib/jvm/java-6-openjdk/jre/lib/i386/xawt/libmawt.so --8<---------------cut here---------------end--------------->8--- Exporting the DiTAA figure: --8<---------------cut here---------------start------------->8--- > java -jar /home/sva/Downloads/emacs/site-lisp/org-mode/contrib/scripts/di= taa.jar /tmp/org-ditaa3944YGv archi.png DiTAA version 0.6b, Copyright (C) 2004 Efstathios Sideris Using options:=20 Reading file: /tmp/org-ditaa3944YGv Exception in thread "main" java.lang.UnsatisfiedLinkError: sun.awt.X11Graph= icsEnvironment.initDisplay(Z)V at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) at sun.awt.X11GraphicsEnvironment.access$100(X11GraphicsEnvironment.java:6= 2) at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:166) at java.security.AccessController.doPrivileged(Native Method) at sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:142) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:186) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnviro= nment.java:82) at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1152) at org.stathissideris.ascii2image.graphics.FontMeasurer.(FontMeasure= r.java:44) at org.stathissideris.ascii2image.graphics.FontMeasurer.(FontMeasu= rer.java:39) at org.stathissideris.ascii2image.graphics.Diagram.(Diagram.java:448) at org.stathissideris.ascii2image.core.CommandLineConverter.main(CommandLi= neConverter.java:195) --8<---------------cut here---------------end--------------->8--- One step further? Reading those messages is really like Chinese for me... What do you advise me to do? Installing another well-chosen package? Thanks a lot! Seb --=20 S=C3=A9bastien Vauban _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode-mXXj517/zsQ@public.gmane.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode