Add check for arm

This commit is contained in:
Manfred Karrer 2016-06-12 16:19:56 +02:00
parent b8baffbc23
commit e249f0f518

View File

@ -133,6 +133,8 @@ public class Utilities {
return arch.endsWith("64")
|| wow64Arch != null && wow64Arch.endsWith("64")
? "64" : "32";
} else if (osArch.contains("arm")) {
return osArch.contains("64") ? "64" : "32";
} else if (isLinux()) {
return osArch.startsWith("i") ? "32" : "64";
} else {
@ -148,7 +150,7 @@ public class Utilities {
log.info("JRE: " + System.getProperty("java.runtime.version", "-") + " (" + System.getProperty("java.vendor", "-") + ")");
log.info("JVM: " + System.getProperty("java.vm.version", "-") + " (" + System.getProperty("java.vm.name", "-") + ")");
}
public static String getJVMArchitecture() {
return System.getProperty("sun.arch.data.model");
}