/obcgui

Java-project that implements the GUI of the obcbox-project.

Primary LanguageJava

OBCGUI

Java-project that implements the GUI of the obcbox-project.

status quo

hardware20240212

  • leds are implemented
  • display and leds are working in direct obcgui.jar application

known bug

OBCgui.init()throws exception when obcgui is packed with maven and then added to java-BC project. log:

pi@obcbox:~ $ sudo java -jar /home/pi/java-BC.jar -r -B -l=-17
init gui
Feb 12, 2024 5:54:59 PM com.pi4j.Pi4J newContextBuilder
INFO: New context builder
display initialized.
init leds.
Exception in thread "main" 0
java.lang.NoClassDefFoundError: com/diozero/ws281xj/LedDriverInterface
	at com.obcgui.OBCgui.init(OBCgui.java:170)
	at org.deepsymmetry.jbce.Main.main(Main.java:369)
Caused by: java.lang.ClassNotFoundException: com.diozero.ws281xj.LedDriverInterface
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:527)
	... 2 more

I anyone has an idea why this happens, please let me know on Zullip

integration in OBCgui