From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Mikhail Titov" Subject: [babel] java headless support is missing for most graphing languages Date: Thu, 17 May 2012 19:55:46 -0500 Message-ID: <004b01cd3490$f66372e0$e32a58a0$@us> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60803) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SVBTz-0007on-LT for emacs-orgmode@gnu.org; Thu, 17 May 2012 20:55:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SVBTx-0006nn-Ug for emacs-orgmode@gnu.org; Thu, 17 May 2012 20:55:51 -0400 Received: from mailout-us.gmx.com ([74.208.5.67]:59556) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SVBTx-0006ji-KU for emacs-orgmode@gnu.org; Thu, 17 May 2012 20:55:49 -0400 Content-Language: en-us List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hello! I=E2=80=99ve 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=3DUTF-8 -Djava.awt.headless=3Dtrue"))) 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 =E2=80=9C-Djava.awt.headless=3Dtrue=E2=80=9D = to all =E2=80=9Clanguage=E2=80=9D handlers supported by org-babel. I = think it won=E2=80=99t hurt and will make working from CLI more = enjoyable out of box. Mikhail