()
return version_regex.search(version_line).group()
Returns the string for the current version of Java installed.
Returns the string for the current version of Java installed.
Returns the string for the current version of Java installed .
def GetJavaVersion():
  """Returns the string for the current version of Java installed."""
  proc = subprocess.Popen(['java', '-version'], stderr=subprocess.PIPE)
  proc.wait()
  version_line = proc.stderr.read().splitlines()[0]
  return version_regex.search(version_line).group()
def GetJavaVersion ( ) : proc = subprocess . Popen ( [ 'java' , '-version' ] , stderr = subprocess . PIPE ) proc . wait ( ) version_line = proc . stderr . read ( ) . splitlines ( ) [ 0 ] return version_regex . search ( version_line ) . group ( )