Closed mizerek closed 1 year ago
What's the rest of the error log?
here's the whole thing:
[INFO] Exception in thread "main" java.lang.ExceptionInInitializerError
[INFO] at com.codename1.designer.ResourceEditorApp._main(ResourceEditorApp.java:274)
[INFO] at com.codename1.designer.ResourceEditorApp.main(ResourceEditorApp.java:258)
[INFO] Caused by: java.awt.HeadlessException:
[INFO] No X11 DISPLAY variable was set, but this program performed an operation which requires it.
[INFO] at java.desktop/sun.java2d.HeadlessGraphicsEnvironment.getDefaultScreenDevice(HeadlessGraphicsEnvironment.java:58)
[INFO] at com.codename1.impl.javase.JavaSEPort.calcRetinaScale(JavaSEPort.java:431)
[INFO] at com.codename1.impl.javase.JavaSEPort.
The error is:
[INFO] Caused by: java.awt.HeadlessException:
[INFO] No X11 DISPLAY variable was set, but this program performed an operation which requires it.
The JVM is running in headless mode and can't generate the CSS. You need to either setup X11 (Wayland etc.) or set up a substitute. The CSS generation logic needs to load a browser to do some edge cases in CSS parsing. The browser needs the UI toolkit running, etc.
hi there
running ubuntu 22.04 fresh install with JDK 11.017. installed maven, unzipped source, ran mvn install
[ERROR] Failed to execute goal com.codenameone:codenameone-maven-plugin:7.0.36:css (cn1-process-classes) on project grub-common: An error occurred while compiling the CSS files. Inputs: /var/www/order/common/src/main/css/theme.css, output: /var/www/order/common/target/classes/theme.res, merge file: /var/www/order/common/target/css/theme.css -> [Help 1]