def _required_jdk_arch():
 system_arch = get_arch()
 if (system_arch == 'x86_64'):
  return 'x64'
 elif re.match('i[0-9]86', system_arch):
  return 'i586'
 else:
  raise Exception(("Unsupported system architecture '%s' for Oracle JDK" % system_arch))

def _required_jdk_arch ( ) : system_arch = get_arch ( ) if ( system_arch == 'x86_64' ) : return 'x64' elif re . match ( 'i[0-9]86' , system_arch ) : return 'i586' else : raise Exception ( ( "Unsupported system architecture '%s' for Oracle JDK" % system_arch ) )
returns required jdk architecture for current system in format used in oracle jdk packages: x64 or i586 .