Where is tools.jar located?

前端 未结 5 936
情深已故
情深已故 2020-12-29 11:11

Running CentOS 6, Java 1.7.0_25 OpenJDK

Upon installing the RPM I saw it say

Unpacking JAR files...
rt.jar
js         


        
5条回答
  •  猫巷女王i
    2020-12-29 11:26

    On Linux, you can use locate tools.jar to find where the file is.

    Typically, it should be in the lib/ directory of your jvm. On Ubuntu/Debian, it is located in directory /usr/lib/jvm/java-xxxxx/lib/tools.jar.

    For example, with openjdk 7, on amd64, I'll find it under /usr/lib/jvm/java-7-openjdk-amd64/lib/tools.jar.

    I have no installation to check it, but I think that the directory structure is the same under CentOS (cf. https://serverfault.com/questions/50883/what-is-the-value-of-java-home-for-centos)

提交回复
热议问题