# What is the structure of JDK and JRE directory in Java 9?

JavaObject Oriented ProgrammingProgramming

The directory structure of JDK and JRE are almost the same, except that JDK has two additional directories like jmods and include and also there is no JRE subdirectory in the JDK9 version.

The JDK directory is the root directory for JDK software installation. This directory also includes copyright, readme, and src.zip files, which can be a source code archive file of the Java platform.

## JDK Directory Structure:

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

The 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
• The JRE/bin directory contains the executable and command-line launchers that are defined by the modules linked to an image.
• The JRE/conf directory contains the .properties, .policy, and other configuration files intended to be edited by developers, deployers, and also end-users.
• The JRE/lib directory contains private implementation details of the runtime system. These files are not intended for external use and must not be modified.
• The JRE/legal directory contains copyright and license files for each module.
Updated on 06-Apr-2020 12:26:15