emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [Babel] why did ob-ditaa generate image file fail in orgmode?
@ 2011-03-16 14:19 Eric Luo
  2011-03-16 14:39 ` Eric S Fraga
  2011-03-16 15:31 ` Eric Schulte
  0 siblings, 2 replies; 6+ messages in thread
From: Eric Luo @ 2011-03-16 14:19 UTC (permalink / raw)
  To: emacs-orgmode



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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-03-17 14:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-16 14:19 [Babel] why did ob-ditaa generate image file fail in orgmode? Eric Luo
2011-03-16 14:39 ` Eric S Fraga
2011-03-16 14:53   ` Eric Luo
2011-03-16 15:06     ` Eric S Fraga
2011-03-17 14:27       ` Eric Luo
2011-03-16 15:31 ` Eric Schulte

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).