Distribution(bin_path=os.path.dirname(self.JAVAC), jdk=True).validate()
Distribution(bin_path=os.path.dirname(self.JAVAC), jdk=True).binary("javap")
with subsystem_instance(DistributionLocator):
DistributionLocator.locate(jdk=True)
After Change
Distribution(bin_path=os.path.dirname(self.JAVAC), jdk=True).validate()
Distribution(bin_path=os.path.dirname(self.JAVAC), jdk=True).binary("javap")
with subsystem_instance(DistributionLocator) as locator:
locator.cached(jdk=True)