Java tools.jar 位于何处?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18061887/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Where is tools.jar located?
提问by Necro.
Running CentOS 6
, Java 1.7.0_25 OpenJDK
跑步CentOS 6
,Java 1.7.0_25 OpenJDK
Upon installing the RPM
I saw it say
安装后RPM
我看到它说
Unpacking JAR files...
rt.jar
jsee.jar
charsets.jar
>tools.jar
Where is tools.jar
located? I checked /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.25.x86_64
tools.jar
位于哪里?我检查了/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.25.x86_64
No where to be found.
无处可寻。
采纳答案by Prasad Kharkar
回答by Suresh Atta
No,it should be in in Lib
folder
不,它应该在Lib
文件夹中
c:\jdkx.x.x\lib
Files used by the development tools. These include tools.jar, which contains non-core classes for support of the tools and utilities in the JDK. Also includes dt.jar, the DesignTime archive of BeanInfo files that tell interactive development environments (IDE's) how to display the Java components and how to let the developer customize them for an application.
c:\jdkx.xx\lib
开发工具使用的文件。其中包括 tools.jar,它包含用于支持 JDK 中的工具和实用程序的非核心类。还包括 dt.jar,BeanInfo 文件的 DesignTime 存档,它告诉交互式开发环境 (IDE) 如何显示 Java 组件以及如何让开发人员为应用程序定制它们。
回答by alci
On Linux, you can use locate tools.jar
to find where the file is.
在 Linux 上,您可以使用locate tools.jar
来查找文件所在的位置。
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
.
通常,它应该在您的 jvm 的 lib/ 目录中。在 Ubuntu/Debian 上,它位于目录/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.
例如,对于 openjdk 7,在 amd64 上,我会在 /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)
我没有安装来检查它,但我认为CentOS下的目录结构是相同的(参见https://serverfault.com/questions/50883/what-is-the-value-of-java-home-for -centos)
回答by limilaw
Not sure what rpm you used, but if you install from yum repo, you should install java-1.7.0-openjdk-devel
in addition to java-1.7.0-openjdk
.
不确定您使用的是什么 rpm,但如果您从 yum 存储库安装java-1.7.0-openjdk-devel
,除了java-1.7.0-openjdk
.
Then you will find tools.jar
in /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.xx.x86_64/lib
directory.
然后你会tools.jar
在/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.xx.x86_64/lib
目录中找到。
回答by ling
Linux Centos 6,
Linux Centos 6,
you can use sudo find / -name "tools.jar"command to find the file location.
您可以使用sudo find / -name "tools.jar"命令来查找文件位置。
tools.jar is normally located under /usr/lib/jvm/java-1.7.0.70.x86_64/lib/tools.jar
tools.jar 通常位于 /usr/lib/jvm/java-1.7.0.70.x86_64/lib/tools.jar
tools.jar is not in JRE.
tools.jar 不在 JRE 中。
My case, tools.jar file is generated only after installing java-1.7.0-openjdk-devel.
我的情况是,tools.jar 文件只有在安装 java-1.7.0-openjdk-devel 后才会生成。
sudo yum install java-1.7.0-openjdk-devel
须藤 yum 安装 java-1.7.0-openjdk-devel