Java für Apple Silicon M1
macOS Monterey Version 12.0.1 kommt ohne Java
# java -version
The operation couldn’t be completed. Unable to locate a Java Runtime.
Please visit http://www.java.com for information on installing Java.
Java für Apple Silicon installieren
Download: https://www.azul.com/downloads/?os=macos&architecture=arm-64-bit&package=jdk
# java -version
openjdk version "17.0.1" 2021-10-19 LTS
OpenJDK Runtime Environment Zulu17.30+15-CA (build 17.0.1+12-LTS)
OpenJDK 64-Bit Server VM Zulu17.30+15-CA (build 17.0.1+12-LTS, mixed mode, sharing)
# javac -version
javac 17.0.1
Minecraft Server installieren
Quelle: https://paper.readthedocs.io/en/latest/server/getting-started.html
Download: https://papermc.io/downloads
Den Minecraft Server (zb. die Datei paper-1.17.1-384.jar) in einen Ordner legen und durch doppelklick starten.
Minecraft Server im Hintergrund
Der Server kann auch im Hintergrund über Terminal gestartet werden.
# java -Xms2G -Xmx2G -jar paper-1.17.1-384.jar --nogui
Downloading vanilla jar...
Patching vanilla jar...
System Info: Java 17 (OpenJDK 64-Bit Server VM 17.0.1+12-LTS) Host: Mac OS X 12.0.1 (aarch64)
Loading libraries, please wait...
[22:41:43 ERROR]: Failed to load properties from file: server.properties
[22:41:43 WARN]: Failed to load eula.txt
[22:41:43 INFO]: You need to agree to the EULA in order to run the server. Go to eula.txt for more info.
Die Datei eula.txt öffnen und eula=TRUE setzen.
Den Server erneut starten, diesmal mit screen:
# screen -dmS minecraft java -jar -Xms2G -Xmx2G -jar paper-1.17.1-384.jar --nogui
System Info: Java 17 (OpenJDK 64-Bit Server VM 17.0.1+12-LTS) Host: Mac OS X 12.0.1 (aarch64)
Loading libraries, please wait...
[22:43:15 INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD'
[22:43:15 INFO]: Found new data pack file/bukkit, loading it automatically
[22:43:15 INFO]: Reloading ResourceManager: Default, bukkit
[22:43:15 INFO]: Loaded 7 recipes
[22:43:16 INFO]: Starting minecraft server version 1.17.1
[22:43:16 INFO]: Loading properties
[22:43:16 INFO]: This server is running Paper version git-Paper-384 (MC: 1.17.1) (Implementing API version 1.17.1-R0.1-SNAPSHOT) (Git: 51b7b60)
[22:43:16 INFO]: Server Ping Player Sample Count: 12
[22:43:16 INFO]: Using 4 threads for Netty based IO
[22:43:16 INFO]: Default game type: SURVIVAL
[22:43:16 INFO]: Generating keypair
[22:43:16 INFO]: Starting Minecraft server on *:25565
[22:43:16 INFO]: Using default channel type
[22:43:16 INFO]: Paper: Using Java 11 compression from Velocity.
[22:43:16 INFO]: Paper: Using Java cipher from Velocity.
[22:43:16 INFO]: Preparing level "world"
[22:43:17 WARN]: Unable to find spawn biome
[22:43:18 WARN]: Unable to find spawn biome
[22:43:18 INFO]: Preparing start region for dimension minecraft:overworld
[22:43:18 INFO]: Preparing spawn area: 0%
[22:43:18 INFO]: Time elapsed: 291 ms
[22:43:18 INFO]: Preparing start region for dimension minecraft:the_nether
[22:43:18 INFO]: Time elapsed: 102 ms
[22:43:18 INFO]: Preparing start region for dimension minecraft:the_end
[22:43:18 INFO]: Time elapsed: 98 ms
[22:43:18 INFO]: Running delayed init tasks
[22:43:18 INFO]: Done (2.710s)! For help, type "help"
[22:43:18 INFO]: Timings Reset
>
Den Server testen
vom gleichen Mac aus.. also 127.0.0.1
WOW, das ist schnell..
Minecraft Server stoppen
Im Terminal den Server anzeigen
# screen -r minecraft
System Info: Java 17 (OpenJDK 64-Bit Server VM 17.0.1+12-LTS) Host: Mac OS X 12.0.1 (aarch64)
Loading libraries, please wait...
[23:03:53 INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD'
[23:03:54 INFO]: Reloading ResourceManager: Default, bukkit
[23:03:54 INFO]: Loaded 7 recipes
[23:03:54 INFO]: Starting minecraft server version 1.17.1
[23:03:54 INFO]: Loading properties
[23:03:54 INFO]: This server is running Paper version git-Paper-384 (MC: 1.17.1) (Implementing API version 1.17.1-R0.1-SNAPSHOT) (Git: 51b7b60)
[23:03:54 INFO]: Server Ping Player Sample Count: 12
[23:03:54 INFO]: Using 4 threads for Netty based IO
[23:03:54 INFO]: Default game type: CREATIVE
[23:03:54 INFO]: Generating keypair
[23:03:55 INFO]: Starting Minecraft server on *:25565
[23:03:55 INFO]: Using default channel type
[23:03:55 INFO]: Paper: Using Java 11 compression from Velocity.
[23:03:55 INFO]: Paper: Using Java cipher from Velocity.
[23:03:55 INFO]: Server permissions file permissions.yml is empty, ignoring it
[23:03:55 INFO]: Preparing level "world"
[23:03:55 INFO]: Preparing start region for dimension minecraft:overworld
[23:03:55 INFO]: Time elapsed: 117 ms
[23:03:55 INFO]: Preparing start region for dimension minecraft:the_nether
[23:03:55 INFO]: Time elapsed: 47 ms
[23:03:55 INFO]: Preparing start region for dimension minecraft:the_end
[23:03:55 INFO]: Time elapsed: 46 ms
[23:03:55 INFO]: Starting remote control listener
[23:03:55 INFO]: Thread RCON Listener started
[23:03:55 INFO]: RCON running on 0.0.0.0:25575
[23:03:55 INFO]: Running delayed init tasks
[23:03:55 INFO]: Done (0.756s)! For help, type "help"
[23:03:55 INFO]: Timings Reset
>
Den Minecraft Server stoppen control + c
Screen verlassen ohne den Minecraft Server zu stoppen mit control + a und danach control + d
Stromverbrauch
Mein Mac mini verbraucht im Durchschnitt 15 W beim arbeiten. Wenn der Minecraft Server läuft kommen ca. 8 W dazu, also insgesamt ca. 23 W.