From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kP+SFDIxWWGrGwEAgWs5BA (envelope-from ) for ; Sun, 03 Oct 2021 06:27:30 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id AEgREDIxWWEubgAAbx9fmQ (envelope-from ) for ; Sun, 03 Oct 2021 04:27:30 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id EEC0635D14 for ; Sun, 3 Oct 2021 06:27:29 +0200 (CEST) Received: from localhost ([::1]:49504 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWt60-0001er-66 for larch@yhetil.org; Sun, 03 Oct 2021 00:27:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49836) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWt4S-0001ej-LM for emacs-orgmode@gnu.org; Sun, 03 Oct 2021 00:25:52 -0400 Received: from ciao.gmane.io ([116.202.254.214]:48398) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWt4R-0000gz-3c for emacs-orgmode@gnu.org; Sun, 03 Oct 2021 00:25:52 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1mWt4O-0004yM-B3 for emacs-orgmode@gnu.org; Sun, 03 Oct 2021 06:25:48 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Jarmo Hurri Subject: 9.5: coping with loss of ditaa.jar Date: Sun, 03 Oct 2021 07:25:35 +0300 Message-ID: <87y27au43k.fsf@iki.fi> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cancel-Lock: sha1:Y6pnq1apSiU0m5/g1DAKIxH8Gr0= Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633235250; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=tnla+4X8tAp79aiVZVJ6e5y0o4vWGTgM+BrzLgFfmjo=; b=F6b/hqmIHdREz23e6sgZyjhIih32sNkfIOo+h69Gf0AhC22KYzt3Fr9o1T0noy+StDQLKZ NdNwaXabcFIQZWh7ovN5/zpGQXcuor+ocll3aeOvDkUQRS3PvzYZSX40VSnhTYOMuJ0NoE cJs5mUY/G+UJ6li2Nn/DbpDaomWpFPealn+Zy9T4ql2oWMEShUPy1BQLr1nt5a5in7rn4R 011wcy32qBlYK7Sww/ArtkeWy034kmHMsssFLN1KbC7AZBbXfTlBDdqQUeLLvnStb/VSOx ofXSQ/ZHt98XidY21uTMcXrBTTWrrQpegf/0Qq37Waj+zcElOtdxJZcvR5cViQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633235250; a=rsa-sha256; cv=none; b=h3KAjBaB9iljmh/YBgF80LOBVOAgBa7GIW8yL+JQ+Hndbk2NTO9FWDi5/z6u1eCYBVvPHz KHA4ykyUF1Jc+H0/+J73sg50m9QUOp1yZ/ETzysW4mvaw+0AWlOZ8TJ1qMhHuBpSRMg4Tv P3zJocBKSzm/VJlt19nK6urblUPthddi+eP3YlK/Ef3u5pDTh0af1VkWFzsZBx7IVBFZp6 yScZrPRzuH++i1sH7ul4ZMSA7m0OmxqTpie1G6w8xzePFAxN8qkg1/vBpbgXUSSIPLi+Y0 A8qpYyXwrgcIYe2pmOmbJW3Jtu3On4uuZnWYTz39AXjndG43flI2mqalH8h9Tg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.30 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: EEC0635D14 X-Spam-Score: -2.30 X-Migadu-Scanner: scn1.migadu.com X-TUID: bJhmQ6A9yY2t 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