mirror of
https://github.com/PlayPro/CoreProtect.git
synced 2025-02-18 02:02:29 +01:00
Fixed NoClassDefFoundError when attempting to load plugin on 32-bit Windows
This commit is contained in:
parent
385c11a3aa
commit
70ffeacbc0
@ -124,6 +124,9 @@ public class Util extends Queue {
|
|||||||
CentralProcessor result = null;
|
CentralProcessor result = null;
|
||||||
try {
|
try {
|
||||||
Class.forName("com.sun.jna.Platform");
|
Class.forName("com.sun.jna.Platform");
|
||||||
|
if (System.getProperty("os.name").startsWith("Windows") && !System.getProperty("sun.arch.data.model").equals("64")) {
|
||||||
|
Class.forName("com.sun.jna.platform.win32.Win32Exception");
|
||||||
|
}
|
||||||
Configurator.setLevel("oshi.hardware.common.AbstractCentralProcessor", Level.OFF);
|
Configurator.setLevel("oshi.hardware.common.AbstractCentralProcessor", Level.OFF);
|
||||||
SystemInfo systemInfo = new SystemInfo();
|
SystemInfo systemInfo = new SystemInfo();
|
||||||
result = systemInfo.getHardware().getProcessor();
|
result = systemInfo.getHardware().getProcessor();
|
||||||
|
Loading…
Reference in New Issue
Block a user