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
Trying to use blink1.setColor(Color) crashes because java.awt.Color does not exist if you've installed headless OpenJDK on Linux (e.g. sudo apt install openjdk-17-jdk-headless) and run in a GUI.
~/projects/blink1-java$ ./run-example.sh Example1
Looking for blink(1) devices...
blink(1) found: serial:3972f61f version:299
Fading to purple
Setting to green
Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: /usr/lib/jvm/java-17-openjdk-arm64/lib/libawt_xawt.so at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2398) at java.base/java.lang.Runtime.load0(Runtime.java:755) at java.base/java.lang.System.load(System.java:1953) at java.base/jdk.internal.loader.NativeLibraries.load(Native Method) [...] at java.desktop/java.awt.Toolkit.<clinit>(Toolkit.java:1397) at java.desktop/java.awt.Color.<clinit>(Color.java:277) at com.thingm.blink1.Example1.main(Example1.java:32)
The text was updated successfully, but these errors were encountered:
todbot
changed the title
requires java.awt.Color, which is not available in headless openjdk installs
Crashes when requiring java.awt.Color on headless openjdk install in GUI
Nov 25, 2023
Trying to use
blink1.setColor(Color)
crashes becausejava.awt.Color
does not exist if you've installed headless OpenJDK on Linux (e.g.sudo apt install openjdk-17-jdk-headless
) and run in a GUI.The text was updated successfully, but these errors were encountered: