Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 jdk1.7.0_45 was created containing the full java JDK. Not what I expected from a JRE install. What is going on here?

like image 378
Brice Roncace Avatar asked Jan 11 '14 01:01

Brice Roncace


People also ask

Is JDK included in JRE?

The JDK includes the JRE, so you do not have to download both separately. To understand the version-string scheme that is used to distinguish various JDK and JRE releases, see Version-String Format. JDK, JRE, and Server JRE can be installed on the following platforms: Oracle Solaris.

Does Oracle need JDK?

Oracle SQL Developer requires the Java Development Kit (JDK) to run. If you are using Windows, you have the option to download a version of SQL Developer that includes the JDK. To do this, pllease follow the simple installation instructions below.

Can JRE be installed without JDK?

JRE is a part of JDK.No need to have JRE when you have JDK. If you open JDK folder and see, you'll have JRE folder inside it which is the same of JRE folder initially you have.

Does Oracle JDK 11 include JRE?

In Windows and macOS, installing the JDK in previous releases optionally installed a JRE. In JDK 11, this is no longer an option. In this release, the JRE or Server JRE is no longer offered. Only the JDK is offered.


1 Answers

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; i.e. the Java plugin which is a security nightmare (!) and auto-update which is bad for production service stability.

like image 52
Stephen C Avatar answered Oct 05 '22 06:10

Stephen C