Introduction and Environment variables JDK in the path of the directory configuration JDK rt.jar, tools.jar action and dt.jar

Introduced to the JDK directory path

After JDK1.7 installation directory and file paths What Features

To compile and run Java programs, can not do without Java compiler and runtime environment. Sun offers its own set of Java development environment, commonly referred to as JDK (Java Development Kit, Java Development Kit).

 JDK directory Description:

bin directory Includes tools for developing Java programs, such as: compilation tools (javac.exe), run the tool (java.exe), packaging tools (jar.exe) and so on.
db directory Derby pure Java database development, is a 100% Java open source relational database development.
include directory C language header files, support for Java programming.
jre directory The root directory of the Java Runtime Environment.
jre \ bin directory Java platform contains tools and libraries executables and DLL files.
jre \ lib directory Environment core libraries used by the Java runtime.
lib directory Java development library contains files used by the program.
src.zip Java source code archive

 

bin directory part of the instructions (basic tools):

javac.exe Basic tools - Java language compiler converts Java source code into bytecode
java.exe Basic tools - Java application launcher, execute Java byte code directly from the application class files
javadoc.exe Basic tools - Java API documentation generator, extracted from the source document comments
apt.exe  Basic tools - java annotation processors
appletviewer.exe Basic tools - java applet applet browser, for executing Java applets on the Java browser HTML file
jar.exe Basic tools - java file compression packing tools 
jdb.exe Basic tools - Java debugger, debugger, troubleshooting tools
javah.exe Basic tools - C header files and stub generator, for writing localization methods, such as header files produced JNI style. Generate Java process can call C process, or to establish a Java program can process C header file called
javap.exe 基本工具 - class文件反编译工具,显示编译类文件中的可访问功能和数据,同时显示字节代码含义
keytool.exe 安全工具 - 管理密钥库和证书.
jarsigner.exe 安全工具 - 生产和校验JAR签名
policytool.exe 安全工具 - 有用户界面的规则管理工具 
kinit.exe.exe  安全工具 - 用于获得和缓存网络认证协议Kerberos 票证的授予票证
klist.exe.exe 安全工具 - 凭据高速缓存和密钥表中的 Kerberos 显示条目
ktab.exe.exe 安全工具 - 密钥和证书管理工具
native2ascii.exe Java国际化工具 - 将文本转化为 Unicode Latin-1。详情参考http://java.sun.com/javase/6/docs/technotes/tools/windows/native2ascii.html 

 

 

 

 

 

 

 

 

 

 

rmic.exe  远程方法调用工具 - 生成远程对象的stubs and skeletons(存根和框架)
rmid.exe 远程方法调用工具 - Java 远程方法调用(RMI:Remote Method Invocation) 活化系统守护进程
rmiregistry.exe 远程方法调用工具 - Java 远程对象注册表 
serialver.exe 远程方法调用工具 - 返回类的 serialVersionUID
tnameserv.exe Java IDL and RMI-IIOP 工具 - Provides access to the naming service
idlj.exe Java IDL and RMI-IIOP 工具 - 生产映射到OMG IDL接口可以使Java应用程序使用CORBA的.java文件 
servertool.exe Java IDL and RMI-IIOP 工具 - 为应用程序提供易于使用的接口用于注册,注销,启动,关闭服务器 
pack200.exe Java 部署工具 - 使用java gzip压缩工具将JAR文件转换为压缩的pack200文件,生产打包文件是高度压缩的JAR包,可以直接部署,减少下载时间 
unpack200.exe  Java 部署工具 - 解包pack200文件为JARs

 

 

 

 

 

 

htmlconverter.exe Java 插件工具 - Java Plug-in HTML转换器 htmlconverter -gui 可以启动图形界面 

 

javaws.exe  Java web 启动工具 - Java web 启动命令行工具
jvisualvm.exe  Java 故障检修,程序概要分析,监视和管理工具 - 一个图形化的Java虚拟机,不说了 大家研究一下就发现太酷了.这是想了解JVM的人的神器http://java.sun.com/javase/6/docs/technotes/guides/visualvm/index.html
jconsole.exe Java 故障检修,程序概要分析,监视和管理工具 -java监视台和管理控制台,图形界面的功能太强大了,运行一下就知道 ,不想多说,看了就知道 
schemagen.exe Java web 服务工具 - Java构架的XML Schema生成器
wsgen.exe  Java web 服务工具 - 生成 JAX-WS 
wsimport.exe Java web 服务工具 - 生成 JAX-WS
xjc.exe Java web 服务工具 - 绑定编译器
jps.exe 监视工具 - JVM Process Status 进程状态工具。列出目标系统的HotSpot JJVM , 监视Java虚拟机的性能,不支持Windows 98 和Windows ME 平台 
jstat.exe 监视工具 - 按照命令行的具体要求记录和收集一个JVM的性能数据 
jstatd.exe 监视工具 - JVM jstat 的守护进程
jinfo.exe Fault detection and repair tool - configuration or print a Java process VM flag
jinfo.exe Fault detection and repair tool - configuration or print a Java process VM flag
Jt.akshe Fault detection and repair tool - stack storage viewer
jmap.exe Fault detection and repair tool - Java memory map
jsadebugd.exe  Fault detection and repair tool - Java's Serviceability Agent Debug Daemon
jstack.exe Fault detection and repair tool - Java stack trace 
 

 

 

 

 

 

 

 

 

jrunscript.exe Java scripting tool - to run the script 
 
 

 

JDK in rt.jar, tools.jar and dt.jar role

rt.jar {Java_Home}/jre/lib/ JAVA foundation class library, which is what you see in java doc which all classes of class files
dt.jar {Java_Home}//lib/ Operating environment class libraries
tools.jar {Java_Home}//lib/ Utility libraries, compilers and operating needs are toos.jar inside the class are sun.tools.java *;. Sun.tools.javac *.

 

 

 

To configure the JDK for three environmental variables, namely JAVA_HOME, path, classpath.

For my computer, the configuration is as follows:

            JAVA_HOME: E: \ Java \ jdk1.7.0_25; (JDK installation)

            path:% JAVA_HOME% \ bin; % JAVA_HOME% \ jre \ bin; (running path and build environment of JDk)

            classpath:.;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar;


Let me introduce some of their own role after finishing on several configuration variables played:

     JAVA_HOME:

             1. facilitate the configuration and variable path classpath value. Even when your local JDK path changes, just need to modify the configuration of the path to the JAVA_HOME.

             2. For some java-based written into the software, the software is running, you can find a better path to the virtual machine. For example Eclipse, its ability is written in java, then run it at the time, it must be that the presence of the virtual machine, the Eclipse directory on the virtual machine can be found through this configuration variables.

   path : The main role of this variable is to specify the search path of the command. This is not to do too much explanation. Example is javac / java some other operation commands. If you do not configure this path, it will not execute these operations command.

   the CLASSPATH : Discovering the Path to Java source files, and run the .class files

 

Guess you like

Origin www.cnblogs.com/drunkPullBreeze/p/11294512.html