classpath下的dt.jar和tool.jar

来源:互联网 发布:python 打开exe程序 编辑:程序博客网 时间:2024/06/03 13:08

classpath是告诉jvm要运行的class在哪里,一般值为classpath=.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar; 其中.;表示当前路径 

jdk5之后的版本classpath可以省略 编译器会自动寻找tool.jar

tool.jar   jdk工具  包括 java、javac、javadoc、javap等  其中javap是java printer的缩写,是jdk自带的一个反编译工具。

dt.jar      SUN对于dt.jar的定义: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 the application。有称其为运行环境的类库,主要是swing的包。  这种理解也是可以的,这里不深究。

rt.jar       jdk的基础类库

0 0