Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which version of JRE for JDK 11? [duplicate]

Tags:

java

What version of the jre is required for using jdk11?I can't find a jre version later than 8update192.

In general is a JDK version correlated to the Java language version? JDK 8 for Java 8 and JDK 11 for Java 11 ?

If I use JDK 11 can I run applications that use a lesser runtime for example 8? That is JDK 11 with Jre 8

like image 513
microwth Avatar asked Oct 25 '18 16:10

microwth


People also ask

What is the JRE version for Java 11?

But I noticed that Java 11 doesn't have a JRE folder. In Java 9 and Java 10, folder structures are changed i.e. java\jdk1. x or java\jre1.

Does JDK 11 come with 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. Users can use jlink to create smaller custom runtimes.

Can I use JRE 8 and JDK 11?

Yes. The number of the kit to produce apps on the Java platform, the JDK, is numbered to match the version of Java platform. 8 for 8, 11 for 11, and so on. You can use JDK 11 during development for earlier Java if your project is explicitly configured to be compiled and built for the earlier Java only.

Is JRE required for Java 11?

Java 11 and NewerThere is no longer a JRE. Developers using the Java 11 SDK must now compile into or distribute the needed Java components with their products.


1 Answers

is a JDK version correlated to the Java language version?

Yes. The number of the kit to produce apps on the Java platform, the JDK, is numbered to match the version of Java platform. 8 for 8, 11 for 11, and so on.

If I use JDK 11 can I run applications that use a lesser runtime for example 8? That is JDK 11 with Jre 8

You can use JDK 11 during development for earlier Java if your project is explicitly configured to be compiled and built for the earlier Java only.

Of course that means you cannot use features added in the later Java. But if your project is properly configured, your IDE should prevent such features from being introduced into your codebase.

What version of the jre is required for using jdk11?

There is no more separate JRE distribution. The JRE was a runtime-only environment used to run apps while the JDK was used to develop (and run) apps.

Now we have only JDK releases, as far as I know.

Oracle no longer intends for end-users to be installing a JRE or a JDK. Java Applets in a browser and Java Web Start app delivery are both being phased out, leaving the end-user with no need for a JRE. Java-based apps are expected to bundle their own Java implementation. The only folks consciously installing a JDK will be developers & server-side sysadmins.

Important:

  • Understand clearly the nature of the OpenJDK project, as explained in Wikipedia.
    • Know that Oracle has committed to feature-parity between its own branded Oracle JDK and the OpenJDK project. This commitment includes donations of previously-commercial features such as Flight Recorder and Mission Control.
  • Read this white paper by Oracle of 2018-03, Java Client Roadmap Update
  • Read the white paper Java Is Still Free, authored by key members of the Java community.

Learn about:

  • Java Platform Module System
  • jlink (JEP 282)
  • jpackage (JEP 343)

Here is a flowchart diagram that may help you finding and deciding amongst the various vendors providing a Java 11 implementation.

Flowchart guiding you in choosing a vendor for a Java 11 implementation


Motivations in choosing a vendor for Java

like image 169
Basil Bourque Avatar answered Nov 15 '22 14:11

Basil Bourque