Add check for os arch

This commit is contained in:
Manfred Karrer 2016-04-21 23:16:40 +02:00
parent a10c5bb25c
commit c98a08b7cf
2 changed files with 18 additions and 4 deletions

View file

@ -118,6 +118,15 @@ public class Utilities {
return System.getProperty("os.name").toLowerCase();
}
public static boolean isCorrectOSArchitecture() {
String osArch = System.getProperty("os.arch");
String jvmArch = System.getProperty("sun.arch.data.model");
//TODO remove log
log.warn("osArch " + osArch);
log.warn("jvmArch " + jvmArch);
return osArch.endsWith(jvmArch);
}
public static void openURI(URI uri) throws IOException {
if (!isLinux()
&& Desktop.isDesktopSupported()