


Java 11 is also a very capable version of the JDK. Both Java 11 and Java 17 are acceptable versions of Java to install and will fulfill the majority of needs for most Java users. Bug fixes and security patches will continue to be released for it.Ī default JDK install on Ubuntu uses Java 11, which was the previous LTS release before Java 17 came out. This is the preferred version to install.

The latest long-term support release of Java is version 17. Install the JDK rather than the JRE to avoid these corner-cases. Occasionally Java programs require a compiler or some other utility in the Java install’s /bin folder. My recommendation is to always install the JDK unless there is some overriding concern that makes a JRE install more attractive. To execute Java programs and run Java JAR files, the minimum requirement is the Java Runtime Environment (JRE).ĭevelopers who want to compile code, create JARs and build applications need the JDK, which includes source code compilers and other necessary utilities. Otherwise, if you are a developer and you have a relationship with a given vendor, or you deploy to a given vendor’s platform, it makes sense to install their Java distribution rather than the Adoptium one.įor users who want enterprise performance and scalability and will pay for extended Java support, the Azul JDK has always been the preferred choice. It’s open source, it’s built directly from the OpenJDK project, and it has the least restrictive Java license.

If you have not installed Java, or the PATH is misconfigured, a ‘Java is not recognized’ error will result.
