我需要有关 java安装目录结构的信息 我在c盘中安装了jdk7.0 c盘中的java文件夹中有不同的文件夹 任何人都可以告诉我每个文件夹的重要性
以下是文件夹结构 -
的 1.jdk1.7.0_21
答案 0 :(得分:1)
jdk1.7.0_21/jre
和jre7
下的JRE是相同的,除了之前的开发工具使用,后者用于最终用户可用的所有Java应用程序。
此文档详细介绍了所有内部文件夹。 http://docs.oracle.com/javase/6/docs/technotes/tools/windows/jdkfiles.html
答案 1 :(得分:0)
JDK - Java Development Kit文件夹 - 它包含用于开发的文件,但不包含用于运行Java应用程序的文件。
JRE - Java Runtime Environment文件夹 - 它包含运行Java应用程序所需的所有内容,但不包含开发它们的所有内容。
答案 2 :(得分:0)
根据Java 7 docs:
<强> 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 \客户端强>
Contains the DLL files used by the Java HotSpot™ Client Virtual Machine.
<强> C:\ jdk1.7.0 \ JRE \ BIN \服务器强> 包含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中\分机强>
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 /目录中。这通过允许applet类加载器从本地文件系统预加载applet类来减少大型applet的启动时间,提供与通过网络下载时相同的保护。
<强> C:\ jdk1.7.0 \ JRE \ lib中\字体强>
Contains TrueType font files for use by the platform.