code: def _clean_java_out(version_str):
      
      out = []
      for line in version_str.decode().split("\n"):
          if line.startswith("Picked up"):
              pass
          if line.find("setlocale") > 0:
              pass
          else:
              out.append(line)
      return "\n".join(out)
docs: Remove extra environmental information reported in java when querying for versions.
  
      Java will report information like _JAVA_OPTIONS environmental variables in the output.