Can someone explain to me the functionality of tools.jar (which is included in the jdk / lib folder) and why is this required?

I came across the tools.jar file in java.So, I want to know what exactly is it used for? I have a lot of searching, but I can not find the document. It will be really useful if someone can provide me with their data as I am new to java. Thanks.

+7
source share
3 answers

In tools.jar all the tools that the JDK needs, but not the JRE.

Included in tools.jar , for example, the javac compiler and the javadoc tool. All the tools required for Java development are included in this .jar file.

+3
source

tools.jar contains the classes used by javac and some java utils that ship only with the JDK, for example javah, javap, jarsigner, javadoc, etc.

+1
source

tools.jar will support your daily java commands, for example. javac , javap . It also contains some infrastructures for JMI and applets.

You can use jar xvf tools.jar to untie the package and gain some knowledge from the file hierarchy.

+1
source

All Articles