java -version javac -version You should see output similar to:

setx JAVA_HOME "C:\Program Files\Eclipse Adoptium\jdk-21.0.2.13-hotspot" setx PATH "%JAVA_HOME%\bin;%PATH%"

Downloading the JDK is the first, simple step into the world of Java development. Pick a trusted source, stick to an LTS version, and you’ll have a solid foundation for any Java project. Last updated: 2026. Java versioning and distribution policies change slowly, but always check the official OpenJDK or Adoptium site for the latest builds.

openjdk version "21.0.2" 2024-01-16 LTS If the commands are not recognized, the JDK is not in your system PATH . Windows (Command Prompt as Admin):

Uso de cookies

Este sitio web utiliza cookies para que usted tenga la mejor experiencia de usuario. Si continúa navegando está dando su consentimiento para la aceptación de las mencionadas cookies y la aceptación de nuestra política de cookies, pinche el enlace para mayor información.plugin cookies

ACEPTAR
Aviso de cookies