emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [babel] java headless support is missing for most graphing languages
@ 2012-05-18  0:55 Mikhail Titov
  2012-05-19  7:51 ` Bastien
  0 siblings, 1 reply; 7+ messages in thread
From: Mikhail Titov @ 2012-05-18  0:55 UTC (permalink / raw)
  To: emacs-orgmode

Hello!

I’ve noticed that at least ditaa and plantuml fail to evaluate with babel.

While for ditaa I can override :java list item with something like

(setq org-babel-default-header-args:ditaa
  '((:results . "file")
    (:exports . "results")
    (:java . "-Dfile.encoding=UTF-8 -Djava.awt.headless=true")))

However plantuml is handling differently. Curiously enough it runs just fine without stdin/stdout redirection from the command line. However if I tried to use input/output redirection like in ob-plantuml.el , it complains like the following:  Exception in thread "main" java.lang.InternalError: Can't connect to window server - not enough permissions.

I propose to add by default “-Djava.awt.headless=true” to all “language” handlers supported by org-babel. I think it won’t hurt and will make working from CLI more enjoyable out of box.

Mikhail

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

end of thread, other threads:[~2012-05-20  2:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-18  0:55 [babel] java headless support is missing for most graphing languages Mikhail Titov
2012-05-19  7:51 ` Bastien
2012-05-20  0:17   ` Mikhail Titov
2012-05-19 22:41     ` Eric Schulte
2012-05-20  1:53       ` Mikhail Titov
2012-05-20  0:39         ` Eric Schulte
2012-05-20  2:55           ` Mikhail Titov

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