0

我需要有关java 安装目录结构的信息。
我已经在c盘安装了jdk7.0。
c盘的java文件夹中有不同的文件夹。
谁能告诉我每个文件夹的重要性


以下是文件夹结构:

1. jdk1.7.0_21
├── bin  
├── include    
├── jre   
├── lib   
└── Other files         

2. jre7  
├── bin  
└── lib
4

3 回答 3

1

jdk1.7.0_21/jre和下的 JREjre7相同,只是前者用于开发工具,后者用于最终用户可用的所有 Java 应用程序。

本文档详细介绍了所有内部文件夹。http://docs.oracle.com/javase/6/docs/technotes/tools/windows/jdkfiles.html

于 2013-05-10T09:41:02.260 回答
0

根据Java 7 文档

c:\jdk1.7.0

Root directory of the JDK software installation. Contains copyright, license, and README files. Also contains src.zip, the archive of source code for the Java platform. 

c:\jdk1.7.0\bin

Executable files for the development tools contained in the Java Development Kit. The PATH environment variable should contain an entry for this directory. For more information on the tools, see the JDK Tools. 

c:\jdk1.7.0\lib

Files used by the development tools. These include the following:

    tools.jar: Contains non-core classes for support of the tools and utilities in the JDK
    dt.jar: DesignTime archive of BeanInfo files that tell interactive development environments (IDEs) how to display the Java components and how to let the developer customize them for an application
    ant-javafx.jar: Contains Ant tasks for packaging JavaFX applications; see Packaging in Deploying JavaFX Applications

c:\jdk1.7.0\jre

Root directory of the Java runtime environment used by the JDK development tools. The runtime environment is an implementation of the Java platform. This is the directory represented by the java.home system property. 

c:\jdk1.7.0\jre\bin

Executable files and DLLs for tools and libraries used by the Java platform. The executable files are identical to files in /jdk1.7.0/bin. The java launcher tool serves as an application launcher (and replaced the old jre tool that shipped with 1.1 versions of the JDK). This directory does not need to be in the PATH

环境变量。

c:\jdk1.7.0\jre\bin\client

Contains the DLL files used by the Java HotSpot™ Client Virtual Machine.

c:\jdk1.7.0\jre\bin\server 包含 Java HotSpot™ Server 虚拟机使用的 DLL 文件。

c:\jdk1.7.0\jre\lib Java 运行环境使用的代码库、属性设置和资源文件。例如:

    rt.jar: Bootstrap classes (the RunTime classes that comprise the Java platform's core API)
    charsets.jar: Character conversion classes
    jfxrt.jar: JavaFX runtime libraries

Aside from the ext subdirectory (described below) there are several additional resource subdirectories not described here. 

c:\jdk1.7.0\jre\lib\ext

Default installation directory for Extensions to the Java platform.

    localedata.jar -- locale data for java.text and java.util.

c:\jdk1.7.0\jre\lib\security

Contains files used for security management. These include the security policy (java.policy) and security properties (java.security)

文件。

c:\jdk1.7.0\jre\lib\applet 包含小程序支持类的 Jar 文件可以放在 lib/applet/ 目录中。这通过允许小程序类加载器从本地文件系统预加载小程序类来减少大型小程序的启动时间,提供与通过网络下载相同的保护。

c:\jdk1.7.0\jre\lib\fonts

Contains TrueType font files for use by the platform.
于 2013-05-10T09:42:14.683 回答
0
  1. JDK - Java Development Kit 文件夹 - 这包含用于开发的文件,但不用于运行 Java 应用程序。

  2. JRE - Java 运行时环境文件夹 - 这包含运行 Java 应用程序所需的一切,但不用于开发它们。

于 2013-05-10T09:41:10.397 回答