Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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).

like image 871
Caffeinated Avatar asked Nov 06 '13 21:11

Caffeinated


2 Answers

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.

like image 40
sh0rug0ru Avatar answered Nov 05 '22 02:11

sh0rug0ru


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.

like image 148
yamafontes Avatar answered Nov 05 '22 02:11

yamafontes