简体   繁体   中英

In the Java install directory, why are there multiple java.exe files?

Just curious about the directory layout for the JDK . So there are two separate java.exe files - one is in:

C:\Program Files (x86)\Java\jdk1.7.0_45\bin

and one is in:

C:\Program Files (x86)\Java\jdk1.7.0_45\jre\bin

Why does there need to be two files ? The motivation for this question arises from some challenge I'm having installing a program(SQL Developer).

There's a difference between installing the jdk vs. the jre .

The jdk package is the developer package and includes tools such as the compiler ( javac ).

The jre package is the core runtime package, and includes the JVM / runtime environment / whatever you need to run software written in JVM languages.

Here a link to the official Oracle documentation.

The binaries in jdk/bin and jdk/jre/bin are identical. According to the documentation, the PATH should point to jdk/bin .

Here is a link to JDK 7 and JRE 7 Installation Guide

If you want to run Java programs, but not develop them, download the JRE. If you want to develop Java applications, download the Java Development Kit, or JDK. The JDK includes the JRE, so you do not have to download both separately.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM