Replace use of property java.home by environment variable JAVA_HOME where the former points to a JRE and the later to a JDK. The JRE is not aware of the tools.jar.