I am running with -Djava.awt.headless=true on openjre8.
The exception is as follows: (attempting to run plantuml on markdown)
Error in "uml" directive: b'Mar 08, 2021 3:34:06 AM java.util.prefs.FileSystemPreferences$1 run\nINFO: Created user preferences directory.\nException in thread "main" java.awt.HeadlessException\n\tat java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:204)\n\tat java.awt.Window.<init>(Window.java:536)\n\tat java.awt.Frame.<init>(Frame.java:420)\n\tat javax.swing.JFrame.<init>(JFrame.java:232)\n\tat net.sourceforge.plantuml.swing.MainWindow2.<init>(MainWindow2.java:159)\n\tat net.sourceforge.plantuml.Run.main(Run.java:174)\n'
Error in "uml" directive: b'Exception in thread "main" java.awt.HeadlessException\n\tat java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:204)\n\tat java.awt.Window.<init>(Window.java:536)\n\tat java.awt.Frame.<init>(Frame.java:420)\n\tat javax.swing.JFrame.<init>(JFrame.java:232)\n\tat net.sourceforge.plantuml.swing.MainWindow2.<init>(MainWindow2.java:159)\n\tat net.sourceforge.plantuml.Run.main(Run.java:174)\n'