versions receive security and performance updates for years. Non-LTS versions are supported only until the next release.
On Windows, check “Set JAVA_HOME” during installation. On macOS/Linux, you may need to set JAVA_HOME manually (instructions below). java development toolkit download