From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Luo Subject: [Babel] why did ob-ditaa generate image file fail in orgmode? Date: Wed, 16 Mar 2011 22:19:43 +0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=45503 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pzra8-0008Dh-03 for emacs-orgmode@gnu.org; Wed, 16 Mar 2011 10:20:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pzra6-0003Yn-To for emacs-orgmode@gnu.org; Wed, 16 Mar 2011 10:20:11 -0400 Received: from lo.gmane.org ([80.91.229.12]:34642) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pzra6-0003Yb-My for emacs-orgmode@gnu.org; Wed, 16 Mar 2011 10:20:10 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Pzra5-0005sQ-KX for emacs-orgmode@gnu.org; Wed, 16 Mar 2011 15:20:09 +0100 Received: from 59.174.127.228 ([59.174.127.228]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 Mar 2011 15:20:09 +0100 Received: from eric.wenbl by 59.174.127.228 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 Mar 2011 15:20:09 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi, I have the following snippet in one of my org files, and have the babel settings as following: ,---- | (setq org-ditaa-jar-path | "~/.emacs.d/org-mode/contrib/scripts/ditaa.jar") | (org-babel-do-load-languages | 'org-babel-load-languages (quote ((emacs-lisp . t) | (dot . t) | (ditaa . t) | (R . t)))) `---- when I evaluated the snippet, ,---- | | executing Ditaa code block... java -jar | /Users/eric/.emacs.d/org-mode/contrib/scripts/ditaa.jar | /var/folders/7x/7x730t2UEpec6mgk8rHiyk\+\+\+TI/-Tmp-/babel-777G0f/ditaa-777shg | /Users/eric/test.png | | ditaa version 0.9, Copyright (C) 2004--2009 Efstathios (Stathis) Sideris | | Running with options: Reading file: | /var/folders/7x/7x730t2UEpec6mgk8rHiyk+++TI/-Tmp-/babel-777G0f/ditaa-777shg | Locale: zh_CN Dialog Rendering to file: /Users/eric/test.png Done in | 1sec Code block evaluation complete. `---- It seems successed, but when I open the test.png, it is said that this file is corrupted. It's ok if I execute the commandline(java -jar ...) in the shell. It's very strange, and tested in ubuntu and Mac OSX. Any clues, thanks