emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O][Babel] why did ob-ditaa generate image file fail in orgmode?


From: Eric Luo
Subject: [O][Babel] why did ob-ditaa generate image file fail in orgmode?
Date: Wed, 16 Mar 2011 22:19:43 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (darwin)


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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]