[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] Re: DiTAA error under Ubuntu
From: |
Sébastien Vauban |
Subject: |
[Orgmode] Re: DiTAA error under Ubuntu |
Date: |
Thu, 13 Aug 2009 11:04:04 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) |
Nick, Eric,
Sorry for answering late -- while you were prompt at replying. Have been out
for one day.
Nick Dokos wrote:
> Nick Dokos <address@hidden> wrote:
>> Sebastien_Vauban <address@hidden> 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---
>>> address@hidden ...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 (visuali
i A ca-certificates-java - Common CA certificates (JKS keystore)
i A default-jre-headless - Standard Java or Java compatible Runtime
(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 (headle
i A java-gcj-compat-headless - Java runtime environment using GIJ
(headless version)
i A libaccess-bridge-java - Java Access Bridge for GNOME
i A libbcel-java - Analyze, create, and manipulate (binary) 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 and 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 JIT
(headless)
i A openjdk-6-jre-lib - OpenJDK Java runtime (architecture
independent libraries)
i A tzdata-java - time zone and daylight-saving time data fo
p default-jdk - Standard Java or Java compatible
Development Kit
p default-jdk-builddep - Standard Java or Java compatible build
dependencies
p openjdk-6-dbg - Java runtime based on OpenJDK (debugging
symbols)
p openjdk-6-demo - Java runtime based on OpenJDK (demos and
examples)
p openjdk-6-doc - OpenJDK Development Kit (JDK)
documentation
p openjdk-6-jdk - OpenJDK Development Kit (JDK)
p openjdk-6-jre - OpenJDK Java runtime, using Hotspot JIT
p openjdk-6-jre-zero - Alternatve JVM for OpenJDK, using
Zero/Shark
p openjdk-6-source - OpenJDK Development Kit (JDK) source files
p openjdk-6-source-files - OpenJDK 6 source files (used as a build
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 -- integration
installer
p sun-java5-fonts - Lucida TrueType fonts (from the Sun JRE)
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 -- integration
installer
p sun-java6-fonts - Lucida TrueType fonts (from the Sun JRE)
p sun-java6-javadb - Java(TM) DB, Sun Microsystems'
distribution 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 = headless, java, jdk,
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/alternatives/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 should
> 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/ditaa.jar
> /tmp/org-ditaa3944YGv archi.png
DiTAA version 0.6b, Copyright (C) 2004 Efstathios Sideris
Using options:
Reading file: /tmp/org-ditaa3944YGv
Exception in thread "main" java.lang.UnsatisfiedLinkError:
sun.awt.X11GraphicsEnvironment.initDisplay(Z)V
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at
sun.awt.X11GraphicsEnvironment.access$100(X11GraphicsEnvironment.java:62)
at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:166)
at java.security.AccessController.doPrivileged(Native Method)
at
sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:142)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:186)
at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82)
at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1152)
at
org.stathissideris.ascii2image.graphics.FontMeasurer.<init>(FontMeasurer.java:44)
at
org.stathissideris.ascii2image.graphics.FontMeasurer.<clinit>(FontMeasurer.java:39)
at
org.stathissideris.ascii2image.graphics.Diagram.<init>(Diagram.java:448)
at
org.stathissideris.ascii2image.core.CommandLineConverter.main(CommandLineConverter.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
--
Sébastien Vauban
- [Orgmode] DiTAA error under Ubuntu, Sébastien Vauban, 2009/08/11
- Re: [Orgmode] DiTAA error under Ubuntu, Nick Dokos, 2009/08/11
- Re: [Orgmode] DiTAA error under Ubuntu, Nick Dokos, 2009/08/11
- [Orgmode] Re: DiTAA error under Ubuntu,
Sébastien Vauban <=
- Re: [Orgmode] Re: DiTAA error under Ubuntu, Nick Dokos, 2009/08/13
- Re: [Orgmode] Re: DiTAA error under Ubuntu, Eric S Fraga, 2009/08/14
- [Orgmode] Re: DiTAA error under Ubuntu [SOLVED], Sébastien Vauban, 2009/08/14
- Re: [Orgmode] Re: DiTAA error under Ubuntu, Nick Dokos, 2009/08/14
- Re: [Orgmode] Re: DiTAA error under Ubuntu, Nick Dokos, 2009/08/14
- [Orgmode] Re: DiTAA error under Ubuntu, Sébastien Vauban, 2009/08/15
- Re: [Orgmode] Re: DiTAA error under Ubuntu, Eric S Fraga, 2009/08/17
- Re: [Orgmode] DiTAA error under Ubuntu, Eric S Fraga, 2009/08/11