* What is the status of ob-ditaa?
@ 2024-10-30 11:39 Jarmo Hurri
2024-10-30 14:57 ` Colin Baxter
0 siblings, 1 reply; 5+ messages in thread
From: Jarmo Hurri @ 2024-10-30 11:39 UTC (permalink / raw)
To: emacs-orgmode
Greetings.
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?
All the best,
Jarmo
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: What is the status of ob-ditaa?
2024-10-30 11:39 What is the status of ob-ditaa? Jarmo Hurri
@ 2024-10-30 14:57 ` Colin Baxter
2024-10-31 10:43 ` Jarmo Hurri
0 siblings, 1 reply; 5+ messages in thread
From: Colin Baxter @ 2024-10-30 14:57 UTC (permalink / raw)
To: Jarmo Hurri; +Cc: emacs-orgmode
>>>>> Jarmo Hurri <jarmo.hurri@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).
Best wishes,
Colin Baxter.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: What is the status of ob-ditaa?
2024-10-30 14:57 ` Colin Baxter
@ 2024-10-31 10:43 ` Jarmo Hurri
2024-10-31 12:27 ` Colin Baxter
0 siblings, 1 reply; 5+ messages in thread
From: Jarmo Hurri @ 2024-10-31 10:43 UTC (permalink / raw)
To: emacs-orgmode
Colin Baxter <m43cap@yandex.com> writes:
>>>>>> Jarmo Hurri <jarmo.hurri@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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: What is the status of ob-ditaa?
2024-10-31 10:43 ` Jarmo Hurri
@ 2024-10-31 12:27 ` Colin Baxter
2024-11-02 9:37 ` Jarmo Hurri
0 siblings, 1 reply; 5+ messages in thread
From: Colin Baxter @ 2024-10-31 12:27 UTC (permalink / raw)
To: Jarmo Hurri; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 2069 bytes --]
>>>>> Jarmo Hurri <jarmo.hurri@iki.fi> writes:
> Colin Baxter <m43cap@yandex.com> writes:
>>>>>>> Jarmo Hurri <jarmo.hurri@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
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
[-- Attachment #2: ditaa.jar --]
[-- Type: application/java-archive, Size: 186095 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: What is the status of ob-ditaa?
2024-10-31 12:27 ` Colin Baxter
@ 2024-11-02 9:37 ` Jarmo Hurri
0 siblings, 0 replies; 5+ messages in thread
From: Jarmo Hurri @ 2024-11-02 9:37 UTC (permalink / raw)
To: emacs-orgmode
Hello again, Colin.
Colin Baxter <m43cap@yandex.com> writes:
>> 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")
So this is likely to be the contrib jar that was floating around (also
in my previous computer) when I last exported some ditaa
drawings. Thanks for sending the file, it will come to the rescue if
need be.
I have decided to try to write a patch for ob-ditaa which will hopefully
resolve this issue of mismatch between what ob-ditaa expects and what
out-of-the-box systems provide.
All the best,
Jarmo
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-11-02 9:38 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-30 11:39 What is the status of ob-ditaa? Jarmo Hurri
2024-10-30 14:57 ` Colin Baxter
2024-10-31 10:43 ` Jarmo Hurri
2024-10-31 12:27 ` Colin Baxter
2024-11-02 9:37 ` 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).