public static boolean getIs64BitOperatingSystem() {
		java.lang.String s = System.getenv("PROCESSOR_ARCHITEW6432");
		if (s != null && s.contains("64"))
			return true;
		s = System.getenv("PROCESSOR_ARCHITECTURE");
		if (s != null)
			return s.contains("64");
		
		if (Environment.isUnix() || Environment.isMac())
		{
			try {
				Process p = Runtime.getRuntime().exec("uname -m");
				p.waitFor();
				byte[] b = new byte[p.getInputStream().available()];
				p.getInputStream().read(b);
				s = new java.lang.String(b, "UTF-8");
				if (s != null && s.length() > 2)
					return s.contains("64");
			} catch (java.lang.Exception e) {
			}
		}
		
		return getIs64BitJVM();
	}