Colin Baxter <m43...@yandex.com> writes: >>>>>> Jarmo Hurri <jarmo.hu...@iki.fi> writes: > > > I just tried to export an org file with bunch of ditaa images and > > got the infamous error: > > > Error: Unable to initialize main class > > org.stathissideris.ascii2image.core.CommandLineConverter Caused > > by: java.lang.NoClassDefFoundError: > > org/apache/commons/cli/ParseException > > > This is under Fedora 40 with org 9.6.15. I do have ditaa.jar, but > > from the looks of the shell script /usr/bin/ditaa that runs the > > jar it needs to be run differently than what ob-ditaa does at the > > moment. > > > In the past I think this was solved by downloading a contrib > > version of ditaa.jar. Now I can not find this under org contrib. > > > https://github.com/emacsmirror/org-contrib > > > Is there a working solution? > > ditaa works for me, using Org mode version 9.8-pre > (release_9.7.14-156-g1c9873). Would you like me to email you my > version of ditaa.jar? I'm on Debian 9.13 (it's old but it works).
Greetings Colin. Can you post both - your location of ditaa.jar; mine is $ locate ditaa.jar /usr/share/java/ditaa.jar (this will tell me something about where your jar file came from) - the contents of your jar; the first couple of files in mine are $ jar -tf `locate ditaa.jar` | head -10 META-INF/ META-INF/MANIFEST.MF org/ org/stathissideris/ org/stathissideris/ascii2image/ org/stathissideris/ascii2image/core/ org/stathissideris/ascii2image/graphics/ org/stathissideris/ascii2image/text/ org/stathissideris/ascii2image/core/CommandLineConverter.class org/stathissideris/ascii2image/core/ConfigurationParser$XMLHandler.class I think I saw somewhere a request to rewrite ob-ditaa.el. Unfortunately my calendar looks awful atm, we should do something about this. All the best, Jarmo