Skip to content

Commit

Permalink
Fixed NoClassDefFoundError if JNA is missing on system
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelli committed Aug 16, 2024
1 parent 1cf940e commit c6f8be9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/net/coreprotect/utility/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ public static String getPluginName() {
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();
Expand Down

0 comments on commit c6f8be9

Please sign in to comment.