# Java 11 installation

Wichtig ist, dass Sie zuerst Paketliste von Ihrem Debian Betriebssystem aktualisieren und mögliche Updates installieren. Dies können Sie mit einem einfachen Befehl durchführen:

```bash
apt update && apt upgrade -y
```

Installieren Sie Java11

```bash
apt install openjdk-11-jre-headless -y
```

Mit diesem Befehl kannst du die Version überprüfen

```bash
java -version
```

Beispielausgabe:

```
openjdk version "11.0.21" 2023-10-17
OpenJDK Runtime Environment (build 11.0.21+9-post-Debian-1deb11u1)
OpenJDK 64-Bit Server VM (build 11.0.21+9-post-Debian-1deb11u1, mixed mode, sharing)
```


---

# Agent Instructions: 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://docs.mc-host24.de/docs/rootserver/java-11-setup.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.
