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.
In tools.jar all the tools that the JDK needs, but not the JRE.
tools.jar
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.
javac
javadoc
.jar
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.
tools.jar will support your daily java commands, for example. javac , javap . It also contains some infrastructures for JMI and applets.
javap
You can use jar xvf tools.jar to untie the package and gain some knowledge from the file hierarchy.
jar xvf tools.jar