You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
I'm using this library, and it's working well.
However, we have a headless Jenkins server that we use for creating release artifacts (RPMs), and the compilations are failing with:
Exception in thread "main" java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it., compiling:(viz.clj:24:3)
(and a long stack trace).
The machine I'm developing on has an X server (no surprise!), but the build server, and the final server don't.
(I've added Graphviz to the RPM dependencies of the release, so some things might get pulled in from there when it's installed on the server)
Is there any way to build this on a headless server?
Will it run on a headless server? (I just want it to generate SVG in answer to a web request).
Calum
The text was updated successfully, but these errors were encountered:
I've worked around it by removing the rhizome dependency, and copying viz and dot.clj into my project, and removing most of viz that deals with images.
This compiles and runs fine.
Hope this is OK.
Not sure if there is a cleaner solution - perhaps detecting X11 displays at runtime, but I'll leave that up to you to decide... :)
I should clarify: Running with -Djava.awt.headless=true gets rid of the X11 display headless exception, but (.. Toolkit ... getMenuShortcutKeyMask) will blow up with a HeadlessException under 1.7.
Hello,
I'm using this library, and it's working well.
However, we have a headless Jenkins server that we use for creating release artifacts (RPMs), and the compilations are failing with:
Exception in thread "main" java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it., compiling:(viz.clj:24:3)
(and a long stack trace).
The machine I'm developing on has an X server (no surprise!), but the build server, and the final server don't.
(I've added Graphviz to the RPM dependencies of the release, so some things might get pulled in from there when it's installed on the server)
Is there any way to build this on a headless server?
Will it run on a headless server? (I just want it to generate SVG in answer to a web request).
Calum
The text was updated successfully, but these errors were encountered: