Help for Current Versions of MX
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
./jstock.sh
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.thoughtworks.xstream.XStream.setupConverters(XStream.java:990)
at com.thoughtworks.xstream.XStream.<init>(XStream.java:593)
at com.thoughtworks.xstream.XStream.<init>(XStream.java:515)
at com.thoughtworks.xstream.XStream.<init>(XStream.java:484)
at com.thoughtworks.xstream.XStream.<init>(XStream.java:430)
at com.thoughtworks.xstream.XStream.<init>(XStream.java:369)
at org.yccheok.jstock.gui.Utils.getXStream(Utils.java:1785)
at org.yccheok.jstock.gui.Utils.fromXML(Utils.java:1819)
at org.yccheok.jstock.gui.JStock.getJStockOptionsViaXML(JStock.java:1803)
at org.yccheok.jstock.gui.JStock.main(JStock.java:1819)
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field private final java.util.Comparator java.util.TreeMap.comparator accessible: module java.base does not "opens java.util" to unnamed module @1e8b406
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:178)
at java.base/java.lang.reflect.Field.setAccessible(Field.java:172)
at com.thoughtworks.xstream.core.util.Fields.locate(Fields.java:40)
at com.thoughtworks.xstream.converters.collections.TreeMapConverter.<clinit>(TreeMapConverter.java:50)
... 10 more
orion1955@SamsungR41:~/jstock
how can I solve that prob.?
Last edited by saturn1955 on Wed Feb 05, 2025 7:21 am, edited 1 time in total.
According to the forum rules (please read): Please provide full Quick System Info, use copy for forum button, no edits.
LiveUSB version is OK if needed.
Please encase the code in code tags, like so: [code]code output here[/code], not quotes,
Thanks.
MX-23.6_x64 July 31 2023 * 6.1.0-37amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.247.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030
*QSI = Quick System Info from menu (Copy for Forum) *MXPI = MX Package Installer *Please check the solved checkbox on the post that solved it. *Linux -This is the way!
$ dpkg -l | grep java
ii ca-certificates-java 20230710~deb12u1 all Common CA certificates (JKS keystore)
ii gir1.2-javascriptcoregtk-4.0:i386 2.46.5-1~deb12u1 i386 JavaScript engine library from WebKitGTK - GObject introspection data
ii gjs 1.74.2-1+deb12u1 i386 Mozilla-based javascript bindings for the GNOME platform (cli tool)
ii java-common 0.74 all Base package for Java runtimes
ii libel-api-java 3.0.0-3 all Expression Language API
ii libgjs0g:i386 1.74.2-1+deb12u1 i386 Mozilla-based javascript bindings for the GNOME platform
ii libhsqldb1.8.0-java 1.8.0.10+dfsg-11+deb12u1 all Java SQL database engine
ii libjavascriptcoregtk-4.0-18:i386 2.46.5-1~deb12u1 i386 JavaScript engine library from WebKitGTK
ii libjavascriptcoregtk-4.1-0:i386 2.46.5-1~deb12u1 i386 JavaScript engine library from WebKitGTK
ii libjsp-api-java 2.3.4-3 all JavaServer Pages API
ii liblibreoffice-java 4:7.4.7-1+deb12u6 all LibreOffice UNO runtime environment -- Java library
ii libreoffice-java-common 4:7.4.7-1+deb12u6 all office productivity suite -- arch-independent Java support files
ii libservlet-api-java 4.0.1-2 all Java Servlet API
ii libservlet3.1-java 1:4.0.1-2 all Java Servlet API 3.1 (transitional package)
ii libunoloader-java 4:7.4.7-1+deb12u6 all LibreOffice UNO runtime environment -- (Java) UNO loader
ii libwebsocket-api-java 1.1-2 all Java WebSocket API
ii ure-java 4:7.4.7-1+deb12u6 i386 LibreOffice UNO runtime environment -- Java support
orion1955@SamsungR41:~/jstock
Finally, I got the stuff running.
I think this is an issue with Open JDK.
Jstock worked for me after I downloaded the Oracle JDK and set the JAVA_HOME variable inside jstock.sh to the unpacked JDK directory.
*QSI = Quick System Info from menu (Copy for Forum) *MXPI = MX Package Installer *Please check the solved checkbox on the post that solved it. *Linux -This is the way!