
In the Variable Value field, enter your JDK or JRE installation path.
JRE_HOME if you installed the JRE (Java Runtime Environment). JAVA_HOME if you installed the JDK (Java Development Kit). In the Variable Name field, enter either:. Click the Environment Variables button. Windows 10 – Search for Environment Variables then select Edit the system environment variables Windows 8 – Go to Control Panel > System > Advanced System Settings Windows 7 – Right click My Computer and select Properties > Advanced You can also type where java at the command prompt. To find out more about Java LTS releases, you can read The art of long-term support and what LTS means for the Java ecosystem by Oracle.If you didn't change the path during installation, it'll be something likeĬ:\Program Files\Eclipse Adoptium\jdk-11.0.17.8-hotspot\ or That is unless you have specific needs to use the greatest and latest and are willing to upgrade to a new Java version every 6 months. In most cases, you should only use LTS releases in production. all other Java versions – non-LTS releases. Java 19 – non-LTS release, the latest version released in September 2022. Java 17 – LTS release, the latest LTS release until September 2023. Java 8 – LTS release (Long Term Support), last LTS release before JPMS (modules) were introduced in Java 9. But I’ll at least summarize all the Java versions since Java 8 and for your convenience: This article isn’t about choosing the right Java version for you to use. Note that I didn’t include all the new features and API additions, only those that are useful for a wide range of developers, to keep the list brief. New tools and features in OpenJDK – additions outside of the language, such as command line tools or JVM improvements. New Java language features in preview/incubation – additions to the Java language or APIs which aren’t in their final state yet.
New Java language features – additions to the Java language or APIs.
Therefore I’ve compiled a table with all new features added since Java 8 for each new Java version and I keep it updated for every newer Java version.
Then it’s useful to know which new features were added since the version you use now, or between the versions that you use now and the one you want to start using next. However, if you’re in a similar situation as me, you’re not using one of the latest Java versions but a version several releases older. Most of the information on the internet describes changes between the last 2 Java versions. Since version 9, Java has new features every 6 months and it’s very hard to keep track of these new changes.