[Top][All Lists]

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

Re: [Orgmode] Re: DiTAA error under Ubuntu

From: Nick Dokos
Subject: Re: [Orgmode] Re: DiTAA error under Ubuntu
Date: Thu, 13 Aug 2009 11:29:50 -0400

Sébastien Vauban <address@hidden> wrote:

> > ... 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...
> 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
> Exporting the DiTAA figure:
> > 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.<clinit>(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.<init>(FontMeasure=
> r.java:44)
>       at 
> org.stathissideris.ascii2image.graphics.FontMeasurer.<clinit>(FontMeasu=
> rer.java:39)
>       at 
> org.stathissideris.ascii2image.graphics.Diagram.<init>(Diagram.java:448)
>       at 
> org.stathissideris.ascii2image.core.CommandLineConverter.main(CommandLi=
> neConverter.java:195)
> One step further?  Reading those messages is really like Chinese for me...
> What do you advise me to do?  Installing another well-chosen package?

Maybe two steps back :-) But reading the messages is not that hard (I
know as much Java as you do - perhaps less). As the program runs, it
loads classes as needed: the classes are specified in a path-like
way. They are found in jar files in standard places.

Looking at the above: the ditaa FontMeasurer class calls its <init>
which loads the java.awt.image.BufferedImage class and calls its
createGraphics() method, etc.

I'd suggest that you run jave with the -verbose:class option and look
around for the error - this is the kind of problem where what you have
on your machine is the determinining factor, so it's very hard for outsiders
to figure out what's wrong.

I did a ditaa run on a simple diagram and I'm attaching the output of the
command for comparison purposes (btw, I don't use openjdk - I've installed
the jdk from Sun).


Attachment: ditaa.out
Description: ditaa verbose:class output

reply via email to

[Prev in Thread] Current Thread [Next in Thread]