From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ciaran Mulloy Subject: Re: PlantUML Date: Mon, 15 Dec 2014 23:59:09 +0000 Message-ID: <548F75CD.7010300@gmail.com> References: <87a92o21es.fsf@alphaville.usersys.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44735) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0fXw-000276-6L for emacs-orgmode@gnu.org; Mon, 15 Dec 2014 18:59:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y0fXn-0000Du-4V for emacs-orgmode@gnu.org; Mon, 15 Dec 2014 18:59:24 -0500 Received: from mail-wg0-x232.google.com ([2a00:1450:400c:c00::232]:52009) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0fXm-0000Dd-UN for emacs-orgmode@gnu.org; Mon, 15 Dec 2014 18:59:15 -0500 Received: by mail-wg0-f50.google.com with SMTP id a1so16032094wgh.37 for ; Mon, 15 Dec 2014 15:59:13 -0800 (PST) Received: from [192.168.15.103] ([89.124.44.33]) by mx.google.com with ESMTPSA id gl5sm14892272wib.0.2014.12.15.15.59.12 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Dec 2014 15:59:12 -0800 (PST) In-Reply-To: <87a92o21es.fsf@alphaville.usersys.redhat.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On 15/12/14 18:50, Nick Dokos wrote: > Ciaran Mulloy writes: > >> Hi, >> I just tried evaluating plantUML source code in babel and get the following >> error message: "Error: Invalid or corrupt jarfile >> /home/cmulloy/.emacs.d/elpa/contrib/scripts/" >> >> I'm currently in the latest stable release of org-mode 8.2.10 >> and have downloaded the plantuml.jar application in the >> /home/cmulloy/.emacs.d/elpa/contrib/scripts/ directory. >> >> I did manage to test the plantuml.jar application and validate that it >> wasn't corrupt by successfully running plantuml directly and building .png >> files directly: >> >> java -jar plantuml.jar -verbose sequenceDiagram1.txt >> >> >> I tried was able to use babel to execute both ditaa and dot code >> successfully so it seems the problem is with plantuml! >> >> I had a look at the ob-plantuml.el file but could see nothing of relevance >> and am still learning elisp. >> >> Any thoughts? >> > This maybe: > > org-plantuml-jar-path needs the complete pathname of your plantuml.jar. > Customize appropriately. > > Nick > > > Hi Nick, Yes! The instructions in the ob-plantuml file state: ;; plantuml.jar | `org-plantuml-jar-path' should point to the jar file, I had just put in the path. I amended to "(setq org-plantuml-jar-path "~/.emacs.d/elpa/contrib/scripts/plantuml.jar")" and it works! Many thanks Ciaran