简体   繁体   中英

Oracle's Server JRE Contains JDK?

I've just downloaded Oracle's Server JRE for Java SE 7 ( link ) The file I downloaded was server-jre-7u45-linux-x64.tar.gz . When I extracted this file I was surprised to find a directory named was created containing the full java JDK. 的目录,其中包含完整的Java JDK。 Not what I expected from a JRE install. What is going on here?

The answer is in the description of the packages on the parent page:

JDK: (Java Development Kit). For Java Developers. Includes a complete JRE plus tools for developing, debugging, and monitoring Java applications.

Server JRE: (Server Java Runtime Environment) For deploying Java applications on servers. Includes tools for JVM monitoring and tools commonly required for server applications, but does not include browser integration (the Java plug-in), auto-update, nor an installer.

JRE: (Java Runtime Environment). Covers most end-users needs. Contains everything required to run Java applications on your system.

In the Server JRE case, "tools commonly required for server applications" includes some of the JDK tools. For instance, a web container (like Tomcat) needs to turn JSPs into compiled Java servlets, and this requires a callable Java compiler.

IMO, the benefit of using Server JRE is in what it DOES NOT include; ie the Java plugin which is a security nightmare (!) and auto-update which is bad for production service stability.

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