mirror of
https://github.com/PlayPro/CoreProtect.git
synced 2024-11-15 10:45:21 +01:00
Fixed NoClassDefFoundError if JNA is missing on system
This commit is contained in:
parent
1cf940e201
commit
c6f8be9043
@ -119,6 +119,7 @@ public class Util extends Queue {
|
||||
public static CentralProcessor getProcessorInfo() {
|
||||
CentralProcessor result = null;
|
||||
try {
|
||||
Class.forName("com.sun.jna.Platform");
|
||||
Configurator.setLevel("oshi.hardware.common.AbstractCentralProcessor", Level.OFF);
|
||||
SystemInfo systemInfo = new SystemInfo();
|
||||
result = systemInfo.getHardware().getProcessor();
|
||||
|
Loading…
Reference in New Issue
Block a user