jdk1.5.0_08 与jre1.5.0_08的区别

来源:百度知道 编辑:UC知道 时间:2024/06/02 10:02:06
我下载了一个jdk安装之后出现了一个jdk1.5.0_08 和一个jre1.5.0_08,jre1.5.0_08是什么?
他们有什么区别?

JRE = Java 运行时环境,有了它就能运行Java程序,可以理解为java虚拟机。
JDK = Java 开发环境,除能运行Java程序外,有Java 标准API类库,可以在此基础上开发Java程序。

以下是java.sun.com上的官方解释:

SDK and JRE
Purpose
The Java 2 SDK and Java 2 Runtime environment are the two principal
products that implement the Java 2 Platform, for developers and consumers,
respectively.
Overview
There are two principal products in the J2SETM platform family.

JavaTM Runtime Environment (JRE)
The JRE provides the libraries, Java virtual machine, and other components
necessary for you to run applets and applications written in the Java programming
language. It does not contain tools and utilities such as compilers or debuggers
for developing applets and applications.

Java 2 SDK
The Java 2 SDK is a superset of the JRE. The Java 2 SDK contains everything that's
in the JRE, plus additional tools such as compilers and debuggers that are necessary