From: Jarmo Hurri <jarmo.hurri@iki.fi>
To: emacs-orgmode@gnu.org
Subject: 9.5: coping with loss of ditaa.jar
Date: Sun, 03 Oct 2021 07:25:35 +0300 [thread overview]
Message-ID: <87y27au43k.fsf@iki.fi> (raw)
Greetings.
I use ditaa with org on a regular basis. Now that ditaa.jar is out of
org 9.5, I need to cope with the situtation.
I see two options, and neither was successful today. This is sort of
what I was afraid of when I voted for keeping ditaa bundled with org.
1. I am running Fedora 34, where ditaa is available as a
package. However, just pointing org-ditaa-jar-path to the correct
location /usr/share/java/ditaa.jar is not sufficient, because doing
so leads to errors when trying to execute a ditaa babel block:
Error: Unable to initialize main class org.stathissideris.ascii2image.core.CommandLineConverter
Caused by: java.lang.NoClassDefFoundError: org/apache/commons/cli/ParseException
Taking a look at what the system binary "ditaa" does, I found the
following shell script:
# -----------------------------------------------------------------
#!/usr/bin/bash
#
source /usr/share/java-utils/java-functions
MAIN_CLASS=org.stathissideris.ascii2image.core.CommandLineConverter
BASE_JARS="ditaa commons-cli xml-commons-apis batik"
set_classpath $BASE_JARS
run "$@"
# -----------------------------------------------------------------
Has anyone successfully fed all these parameters to ob-ditaa?
2. Ditaa is available via github at
https://github.com/stathissideris/ditaa
The developer section points to building with some clojure build
system lein, which is not available in my system, and in Fedora,
running
dnf list available '*lein*'
gives me nothing useful.
There are, however, ant build files available in ditaa repo under
build. Then again, running ant with any parameters I could think of
leads to the error
BUILD FAILED
/home/jarmo/src/ditaa/build/build.xml:6: The following error occurred while executing this line:
/home/jarmo/src/ditaa/build/release.xml:67: /home/jarmo/src/ditaa/lib does not exist.
Has anyone succesfully compiled ditaa for use with org?
Have fun and stay safe.
Jarmo
next reply other threads:[~2021-10-03 4:27 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-03 4:25 Jarmo Hurri [this message]
2021-10-03 11:39 ` 9.5: coping with loss of ditaa.jar Max Nikulin
2021-10-03 16:32 ` Dr. Arne Babenhauserheide
2021-10-03 16:50 ` Colin Baxter
2021-10-04 11:43 ` Eric S Fraga
2021-10-04 13:28 ` Tim Cross
2021-10-04 14:02 ` Eric S Fraga
2021-10-04 11:59 ` Eric S Fraga
2021-10-10 4:52 ` Jarmo Hurri
2021-10-10 5:52 ` Colin Baxter 😺
2021-10-11 9:53 ` Jarmo Hurri
2021-10-10 7:58 ` Tim Cross
2021-10-11 10:20 ` Jarmo Hurri
2021-10-10 9:01 ` Tim Cross
2021-10-11 22:09 ` Nick Dokos
2021-10-10 16:32 ` Thomas S. Dye
2021-10-11 9:58 ` Jarmo Hurri
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y27au43k.fsf@iki.fi \
--to=jarmo.hurri@iki.fi \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).