()
return _VERSION_REGEX.search(version_line).group(1)
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)
  unused_stdoutdata, stderrdata = proc.communicate()
  version_line = stderrdata.splitlines()[0]
  return _VERSION_REGEX.search(version_line).group(1)
def _GetJavaVersion ( ) : proc = subprocess . Popen ( [ 'java' , '-version' ] , stderr = subprocess . PIPE ) unused_stdoutdata , stderrdata = proc . communicate ( ) version_line = stderrdata . splitlines ( ) [ 0 ] return _VERSION_REGEX . search ( version_line ) . group ( 1 )