Using exe4j to package into exe and read exceptions #2611
Replies: 2 comments
-
Your package seems to be missing Also you will need to make sure that your packaging method supports loading the native JNA libraries, the faq is helpful for that: https://www.oshi.ooo/FAQ.html |
Beta Was this translation helpful? Give feedback.
-
JNA uses OSHI uses SLF4J so you'll need to add an implementation for your logger of choice. |
Beta Was this translation helpful? Give feedback.
-
Exception in thread "pool-2-thread-1" java.lang.NoClassDefFoundError: java/util/logging/Logger
at com.sun.jna.Structure.(Structure.java:114)
at com.sun.jna.platform.win32.VersionHelpers.IsWindowsVersionOrGreater(VersionHelpers.java:59)
at com.sun.jna.platform.win32.VersionHelpers.IsWindowsVistaOrGreater(VersionHelpers.java:127)
at oshi.software.os.windows.WindowsOperatingSystem.(WindowsOperatingSystem.java:94)
at oshi.SystemInfo.createOperatingSystem(SystemInfo.java:82)
at oshi.util.Memoizer$1.get(Memoizer.java:61)
at oshi.SystemInfo.getOperatingSystem(SystemInfo.java:76)
at cn.hutool.system.oshi.OshiUtil.(OshiUtil.java:44)
at com.free.main.K.ALLATORIxDEMO(il:16)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: java.lang.ClassNotFoundException: java.util.logging.Logger
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
... 12 more
Beta Was this translation helpful? Give feedback.
All reactions