Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 1.37 KB

crafty.md

File metadata and controls

32 lines (25 loc) · 1.37 KB

Crafty Controller Docker FAQ

Q1. How do i define the version of Java used when running a Minecraft server via Crafty?

A1. In order to specify the version of Java you need to edit an already defined server, you cannot define this at the time of server creation in Crafty (this may change in later versions). The procedure for changing the version of Java after the server is defined is as follows:-

  1. Open Crafty Web UI and login
  2. Click on the 'Dashboard'
  3. Click on 'Edit' for running server
  4. Scroll down to 'Java Path' and set the path to one of the versions of Java shown below:-

Java 8 (default)

/usr/lib/jvm/java-8-openjdk/bin/java

Java 11 (required by papermc)

/usr/lib/jvm/java-11-openjdk/bin/java

Java XX (latest) (required by minecraft 1.17+)
Due to the rolling nature of Arch Linux and the fact Java versions are changing quickly nowadays i cannot detail the exact path to use, you should be able to identify the latest version included in the image by going to the following link:- https://archlinux.org/packages/extra/x86_64/jdk-openjdk/

Once you know the major version (e.g. 18) then simply replace XX with the version number to get the path to the latest Java included in the image.

/usr/lib/jvm/java-XX-openjdk/bin/java
  1. Click on 'Save'
  2. Restart the server for the change to take affect