> For the complete documentation index, see [llms.txt](https://educacion.gitbook.io/programacion/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://educacion.gitbook.io/programacion/ud1-introduccion-a-programacion/introducion-a-java/descarga-e-instalacion-de-jdk.md).

# Descarga e instalación de JDK

Para instalar JAVA JDK en Windows, podes seguir estes pasos:

1. **Descargar Java**:
   * Vai á páxina oficial de Java: [oracle.com/java/technologies/javase-downloads.html](https://www.oracle.com/java/technologies/javase-downloads.html).
   * Descarga a última versión **LTS do JDK (Neste caso para a 21)** para Windows. Asegúrate de escoller a versión adecuada (*x64 Installer*) segundo a arquitectura do teu sistema.
2. **Instalar o JDK**:
   * Unha vez descargado o ficheiro `.exe`, fai dobre clic nel para iniciar o instalador.
   * Preme en `Next` para comezar.
   * Escolle unha localización para instalar Java. Se non necesitas unha localización específica, podes usar a predeterminada.
   * Preme en `Next` e agarda a que o instalador remate.
   * Preme en `Close` cando remate a instalación.
3. **Verificar a instalación**
   * Abre unha consola de comandos (CMD). Preme as teclas `Win + R`<i class="fa-copy">:copy:</i>, escribe `cmd` e preme `Enter`.
   * Escribe o seguinte comando para verificar o compilador de Java.:

     ```bash
     javac -version
     ```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://educacion.gitbook.io/programacion/ud1-introduccion-a-programacion/introducion-a-java/descarga-e-instalacion-de-jdk.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
