You’ve just installed the Java runtime environment, but you couldn’t find tools jar. The error is caused by the Java virtual machine. The tools jar is the one that contains the Java runtime environment. To fix the problem, install the JDK and then restart the system. You should then be able to run your java source files. This can help you solve the issue. However, if you cannot find the JDK, you can install it yourself.
Could Not Find Tools Jar