code: def _get_from_registry(self):
          
          from ._windows import reg_keys
          for location in reg_keys:
              location = location.replace('\\', '/')
              jreKey = "/proc/registry/HKEY_LOCAL_MACHINE/{}".format(location)
              try:
                  with open(jreKey + "/CurrentVersion") as f:
                      cv = f.read().split('\x00')
                  versionKey = jreKey + "/" + cv[0]
  
                  with open(versionKey + "/RunTimeLib") as f:
                      cv = f.read().split('\x00')
  
                  return cv[0]
  
              except OSError:
                  pass
          return None
docs: Retrieves the path to the default Java installation stored in the
          Windows registry
  
          :return: The path found in the registry, or None