Seit einigen Wochen setze ich auf meinem Laptop (neustem Laptop), den es hier günstig als Gebrauchtgerät gab, Debian Bookworm (testing) ein.
Darauf wollte ich nun heute java installieren um helden.jar einzusetzen.
Das ging via
$ apt install openjdk-17-jre-headless openjdk-17-jre -y
Danach reicht es die Datei datei helden.jar mit herunterzuladen und mit Java aufzurufen via
$ java --jar helden.jar
Sollte das Paket openjdk-17-jre fehlen, wie es bei mir zuerst der Fall war, erhällt man folgende Fehlermeldung.
Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: /usr/lib/jvm/java-17-openjdk-amd64/lib/libawt_xawt.so
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2393)
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.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:388)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:232)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:174)
at java.base/jdk.internal.loader.NativeLibraries.findFromPaths(NativeLibraries.java:315)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:285)
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2398)
at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:818)
at java.base/java.lang.System.loadLibrary(System.java:1989)
at java.desktop/java.awt.Toolkit$2.run(Toolkit.java:1392)
at java.desktop/java.awt.Toolkit$2.run(Toolkit.java:1390)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
at java.desktop/java.awt.Toolkit.loadLibraries(Toolkit.java:1389)
at java.desktop/java.awt.Toolkit.initStatic(Toolkit.java:1427)
at java.desktop/java.awt.Toolkit.<clinit>(Toolkit.java:1401)
at java.desktop/sun.awt.AppContext$2.run(AppContext.java:273)
at java.desktop/sun.awt.AppContext$2.run(AppContext.java:262)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
at java.desktop/sun.awt.AppContext.initMainAppContext(AppContext.java:262)
at java.desktop/sun.awt.AppContext$3.run(AppContext.java:315)
at java.desktop/sun.awt.AppContext$3.run(AppContext.java:298)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
at java.desktop/sun.awt.AppContext.getAppContext(AppContext.java:297)
at java.desktop/javax.swing.SwingUtilities.appContextGet(SwingUtilities.java:2022)
at java.desktop/javax.swing.UIManager.getLAFState(UIManager.java:251)
at java.desktop/javax.swing.UIManager.maybeInitialize(UIManager.java:1489)
at java.desktop/javax.swing.UIManager.getInstalledLookAndFeels(UIManager.java:428)
at java.desktop/javax.swing.UIManager.installLookAndFeel(UIManager.java:471)
at java.desktop/javax.swing.UIManager.installLookAndFeel(UIManager.java:490)
at helden.Helden.<clinit>(Unknown Source)