def get_java_version():
 (o, e, exit_status) = qiime_system_call('java -version')
 if (exit_status != 0):
  return None
 e = e.strip().splitlines()
 version_line = e[0]
 if (not version_line.startswith('java version')):
  return None
 else:
  return version_line.split()[(-1)].strip('"')

def get_java_version ( ) : ( o , e , exit_status ) = qiime_system_call ( 'java -version' ) if ( exit_status != 0 ) : return None e = e . strip ( ) . splitlines ( ) version_line = e [ 0 ] if ( not version_line . startswith ( 'java version' ) ) : return None else : return version_line . split ( ) [ ( - 1 ) ] . strip ( '"' )
returns the java version .