开云体育

Locked Re: JMRI in Linux Mint 22 not starting


 

On September 11, 2024 11:54:19 PM GMT+02:00, "Kelly Regan via groups.io" <kelly@...> wrote:
Relatively new to Linux but I installed this on a laptop a few months ago with no issue but I am trying to install this on my desktop now and I'm getting the following error in the terminal. This looks like a java issue but i don't know were to start the repair.
I have installed JMRI in the HOME directory.
?
?
---
skray775@Office:~$ /home/skray775/JMRI/DecoderPro
OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
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:2398)
? ? at java.base/java.lang.Runtime.load0(Runtime.java:755)
? ? at java.base/java.lang.System.load(System.java:1957)
? ? 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:2403)
? ? at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:818)
? ? at java.base/java.lang.System.loadLibrary(System.java:1993)
? ? at java.desktop/java.awt.Toolkit$2.run(Toolkit.java:1388)
? ? at java.desktop/java.awt.Toolkit$2.run(Toolkit.java:1386)
? ? at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
? ? at java.desktop/java.awt.Toolkit.loadLibraries(Toolkit.java:1385)
? ? at java.desktop/java.awt.Toolkit.initStatic(Toolkit.java:1423)
? ? at java.desktop/java.awt.Toolkit.<clinit>(Toolkit.java:1397)
? ? at java.desktop/java.awt.Component.<clinit>(Component.java:624)
? ? at apps.util.Log4JUtil.initLog4J(Log4JUtil.java:107)
? ? at apps.util.Log4JUtil.initLogging(Log4JUtil.java:81)
? ? at apps.util.Log4JUtil.initLogging(Log4JUtil.java:69)
? ? at apps.AppsBase.preInit(AppsBase.java:64)
? ? at apps.gui3.Apps3.preInit(Apps3.java:49)
? ? at apps.gui3.dp3.DecoderPro3.preInit(DecoderPro3.java:99)
? ? at apps.gui3.dp3.DecoderPro3.main(DecoderPro3.java:93)
skray775@Office:~$?
?
---
Java verion shows this...
?
skray775@Office:~$ java -version
openjdk version "17.0.12" 2024-07-16
OpenJDK Runtime Environment (build 17.0.12+7-Ubuntu-1ubuntu224.04)
OpenJDK 64-Bit Server VM (build 17.0.12+7-Ubuntu-1ubuntu224.04, mixed mode, sharing)
skray775@Office:~$?
?
---
?
?
?
--
Kelly R. Regan


Kelly,

Make sure you have not installed any of the openjdk-*-headless packages but either openjdk-17-jdk or openjdk-17-jre

(I don't have any Mint machine so I can only go by the search results. I guess Mint also has a way to choose which of several java installations to use... Your error most certainly points to a headless (I.e. no GUI, only text) java trying to load a GUI program library called libawt for DecoderPro)

Hope this helps,
Heiko
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Join [email protected] to automatically receive all group messages.