emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* 9.5: coping with loss of ditaa.jar
@ 2021-10-03  4:25 Jarmo Hurri
  2021-10-03 11:39 ` Max Nikulin
                   ` (3 more replies)
  0 siblings, 4 replies; 17+ messages in thread
From: Jarmo Hurri @ 2021-10-03  4:25 UTC (permalink / raw)
  To: emacs-orgmode


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



^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2021-10-11 22:11 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-03  4:25 9.5: coping with loss of ditaa.jar Jarmo Hurri
2021-10-03 11:39 ` 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

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).