Hi Lin Sun, lin Sun via "General discussions about Org-mode." writes: > This patch will re-submit the solution based on the last rev. > > Please help review and merge the patch. Thanks > > [4. text/x-patch; 0001-ob-plantuml-fix-DISPLAY-error-with-html-export.patch]... > From 6512e94806a4c08f40e6796e239ad2b318f7fbc5 Mon Sep 17 00:00:00 2001 > From: Lin Sun > Date: Tue, 7 Jun 2022 04:06:06 +0000 > Subject: [PATCH] ob-plantuml: fix DISPLAY error with html export > > * lisp/ob-plantuml.el (org-babel-execute:plantuml): Use headless mode > for Org calling plantuml for exporting to html to avoid issues with > operations that normally try to access the system graphics stack. > --- > lisp/ob-plantuml.el | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/lisp/ob-plantuml.el b/lisp/ob-plantuml.el > index 6e1b1b1..37a631b 100644 > --- a/lisp/ob-plantuml.el > +++ b/lisp/ob-plantuml.el > @@ -122,6 +122,7 @@ This function is called by `org-babel-execute-src-block'." > ((not (file-exists-p org-plantuml-jar-path)) > (error "Could not find plantuml.jar at %s" org-plantuml-jar-path)) > (t `(,java > + "-Djava.awt.headless=true" This looks good and low-risk to me. > "-jar" > ,(shell-quote-argument (expand-file-name org-plantuml-jar-path)) > ,@org-plantuml-args)))) > -- > 2.7.0 Best wishes, Arne -- Unpolitisch sein heißt politisch sein, ohne es zu merken. draketo.de