[英]In the Java install directory, why are there multiple java.exe files?
Just curious about the directory layout for the JDK . 只是好奇JDK的目录布局。 So there are two separate java.exe files - one is in: 所以有两个单独的java.exe文件 - 一个在:
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). 这个问题的动机源于我正在安装程序(SQL Developer)的一些挑战。
There's a difference between installing the jdk
vs. the jre
. 安装jdk
和jre
之间有区别。
The jdk
package is the developer package and includes tools such as the compiler ( javac
). jdk
包是开发人员包,包括编译器( 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. jre
包是核心运行时包,包括JVM /运行时环境/运行用JVM语言编写的软件所需的任何内容。
Here is a link to JDK 7 and JRE 7 Installation Guide 这里是一个链接到JDK 7和JRE 7安装指南
If you want to run Java programs, but not develop them, download the JRE. 如果要运行Java程序,但不要开发它们,请下载JRE。 If you want to develop Java applications, download the Java Development Kit, or JDK. 如果要开发Java应用程序,请下载Java Development Kit或JDK。 The JDK includes the JRE, so you do not have to download both separately. JDK包含JRE,因此您无需单独下载。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.