emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Mikhail Titov" <mlt@gmx.us>
To: emacs-orgmode@gnu.org
Subject: [babel] java headless support is missing for most graphing languages
Date: Thu, 17 May 2012 19:55:46 -0500	[thread overview]
Message-ID: <004b01cd3490$f66372e0$e32a58a0$@us> (raw)

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

             reply	other threads:[~2012-05-18  0:55 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-18  0:55 Mikhail Titov [this message]
2012-05-19  7:51 ` [babel] java headless support is missing for most graphing languages 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='004b01cd3490$f66372e0$e32a58a0$@us' \
    --to=mlt@gmx.us \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).