# Minecraft Server mit unterschiedlichen Java Versionen starten

* Wenn du mehrere Java Versionen auf deinem Server hast, kannst du in der start.sh einen Java Path angeben, damit der Server in der gewünschten Java Version startet.
* Minecraft Start.sh:

```bash
screen -S Minecraft Dein_Java_pfad/java -Xms1G -Xmx2G -jar Spigot.jar
```

* Beispiel:

```bash
screen -S Minecraft /usr/lib/jvm/adoptopenjdk-8-hotspot-amd64/bin/java -Xms1G -Xmx2G -jar Spigot.jar
```

* Deine insatllierte Java Versionen findest du hier:

```bash
cd /usr/lib/jvm/
```

* Mit diesem Befehl kannst du anschauen, welche Java Versionen auf deinem Server installiert sind.

```bash
ls
```


---

# 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/bestimmte-java-version.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.
