code: def home(self):
      
      if not self._home:
        home = self._get_system_properties(self.java)['java.home']
        # The `jre/bin/java` executable in a JDK distribution will report `java.home` as the jre dir,
        # so we check for this and re-locate to the containing jdk dir when present.
        if os.path.basename(home) == 'jre':
          jdk_dir = os.path.dirname(home)
          if self._is_executable(os.path.join(jdk_dir, 'bin', 'javac')):
            home = jdk_dir
        self._home = home
      return text_type(self._home)
docs: Returns the distribution JAVA_HOME.