Java OS is 64 Bit is64Bit(String arch)

Here you can find the source of is64Bit(String arch)

Description

is Bit

License

Open Source License

Declaration

private static boolean is64Bit(String arch) 

Method Source Code

//package com.java2s;

public class Main {
    private static boolean is64Bit(String arch) {
        if (arch.equals("x86"))
            return false;
        else if (arch.equals("amd64"))
            return true;
        else if (arch.equals("x86_64"))
            return true;
        else if (arch.equals("ppc") || arch.equals("PowerPC"))
            return false;
        else if (arch.equals("ppc64"))
            return true;
        else if (arch.equals("i386") || arch.equals("i686"))
            return false;
        else// w ww.ja v a  2 s  .  c om
            throw new UnsupportedOperationException("Unsupported architecture: " + arch);
    }
}

Related

  1. is64()
  2. is64()
  3. is64()
  4. is64BitArchitecture()
  5. is64BitOs()
  6. is64BitOS()
  7. is64bitOS()