首页 > 文章列表 > Java 9中JDK和JRE目录的结构是什么?

Java 9中JDK和JRE目录的结构是什么?

442 2023-08-23

JDK和JRE的目录结构几乎相同,只是JDK多了两个额外的目录,如jmods和include,并且在JDK9版本中没有JRE子目录。

JDK目录是JDK软件安装的根目录。该目录还包括版权、自述文件和src.zip文件,src.zip文件可以是Java平台的源代码存档文件。

JDK目录结构:

JDK-9
   - bin
   - conf
   - include
   - jmods
   - legal
   - lib
  • JDK/bin directory contains an executable file and command-line launchers defined by modules linked to the image.
  • JDK/conf directory contains .properties, .policy, and other configuration files for developers, deployers, and end users to edit.
  • JDK/lib directory contains private implementation details of the runtime system. These files are not intended for external use and should not be modified.
  • JDK/jmods directory contains compiled module definitions.
  • JDK/legal directory contains copyright and license files for each module.
  • JDK/include directory contains C language header files for programming native code using the Java Native Interface (JNI) and Java Virtual Machine (JVM) debugger interface.

JRE is the root directory for JRE software installation. This directory contains readme and other JRE folders.

JRE Directory Structure:

JRE-9
   - bin
   - conf
   - legal
   - lib
  • JRE/bin目录包含由链接到映像的模块定义的可执行文件和命令行启动器。
  • JRE/conf目录包含供开发人员、部署人员和最终用户编辑的.properties.policy和其他配置文件。
  • JRE/lib目录包含运行时系统的私有实现细节。这些文件不适用于外部使用,不得进行修改。
  • JRE/legal目录包含每个模块的版权和许可文件。