Hi Community, i have problems to run a Feed the Beast Infinity Evolved 3.0.2 Server on my Debian System. It's NOT the once Java Application i use, so i have to start the server with a specific Version, but that's my problem. My "update-alternatives --config java" shows the following output:
My system is not in english, i am sorry for that. I have edited the "ServerStart.sh", now it begins with:
But that won't work. I have also edited the part with "start_server()":
But if i start the Server with "sudo -u minecraft /opt/minecraft-server/FTB-Infinity-Server/ServerStart.sh" he shows me the java11 version. How can i start (only) this script with Java 8? I have googled a lot, but maybe i didn't use the correct keywords. Maybe someone can help me or give me a useful Link?
Code:
Es gibt 3 Auswahlmöglichkeiten für die Alternative java (welche /usr/bin/java bereitstellen).
Auswahl Pfad Priorität Status
------------------------------------------------------------
* 0 /usr/lib/jvm/java-11-openjdk-arm64/bin/java 1111 automatischer Modus
1 /usr/lib/jvm/adoptopenjdk-8-hotspot-arm64/bin/java 1081 manueller Modus
2 /usr/lib/jvm/adoptopenjdk-8-hotspot-jre-arm64/bin/java 1081 manueller Modus
3 /usr/lib/jvm/java-11-openjdk-arm64/bin/java 1111 manueller Modus
My system is not in english, i am sorry for that. I have edited the "ServerStart.sh", now it begins with:
Code:
#!/bin/sh
export JAVA_HOME=/usr/lib/jvm/adoptopenjdk-8-hotspot-jre-arm64
export JAVACMD=/usr/lib/jvm/adoptopenjdk-8-hotspot-jre-arm64/bin/java
But that won't work. I have also edited the part with "start_server()":
Code:
start_server() {
$JAVACMD -version
"$JAVACMD" -server -Xms2048M -Xmx4096M -XX:PermSize=256M -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:+CMSClassUnloadingEnabled -XX:ParallelGCThreads=2 -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10 -XX:+UseG1GC -jar FTBServer-1.7.10-1614.jar nogui
}
But if i start the Server with "sudo -u minecraft /opt/minecraft-server/FTB-Infinity-Server/ServerStart.sh" he shows me the java11 version. How can i start (only) this script with Java 8? I have googled a lot, but maybe i didn't use the correct keywords. Maybe someone can help me or give me a useful Link?