>>>>> Jarmo Hurri writes: > Colin Baxter writes: >>>>>>> Jarmo Hurri 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 Mine is at ~/local/bin/jar/ditaa.jar, not in $PATH but called via the variable: (setq org-ditaa-jar-path "~/local/bin/jar/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