User Tools

Site Tools


player:tutorials:mc-1.17-server

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
player:tutorials:mc-1.17-server [2021/06/09 00:09] calloattiplayer:tutorials:mc-1.17-server [2023/01/28 00:01] modmuss50
Line 3: Line 3:
 A: The server is probably using Java 8. Minecraft 1.17 needs Java 16. A: The server is probably using Java 8. Minecraft 1.17 needs Java 16.
  
-**Q: What do I do now?** +**Q: How do I fix that?**
- +
-A: There are many options. The easier way is to download the Java 16 zip file, unzip in the server folder, edit your bat file to use the java.exe you downloaded. +
- +
-**Q: How do I do that?** +
- +
-1.Download this file: https://github.com/AdoptOpenJDK/openjdk16-binaries/releases/download/jdk-16.0.1%2B9/OpenJDK16U-jre_x64_windows_hotspot_16.0.1_9.zip +
- +
-2. Unzip it inside your server folder. +
- +
-3. You will now have a ''jdk-16.0.1+9-jre'' folder inside your server folder. For example if your server folder is located in ''M:\SERVER'', the java folder will be ''M:\SERVER\jdk-16.0.1+9-jre'' +
- +
-4. Edit the start.bat file you use to start your server, replace java with the full path to the java 16 executable. +
- +
-For example, if your current command to start the server is: +
- +
-''**java** -Xms3G -Xmx3G -jar fabric-server-launch.jar nogui'' +
- +
-Edit it like this: +
- +
-''**%~dp0jdk-16.0.1+9-jre\bin\java.exe** -Xms3G -Xmx3G -jar fabric-server-launch.jar nogui''  +
- +
-(''%~dp0'' is replaced with the path where the batch file starting the server is. The assumption is that the start.bat file is inside the server folder.) +
- +
-Save the file, run it, allow java in the firewall warning if you get one, done. +
- +
-**Notes:**  +
- +
-1. The java parameters ''-Xms3G -Xmx3G'' used in the example are not mandatory, they are just part of the example. +
- +
-2. Use the proper fabric API for 1.17, the latest one at the moment of writing this tutorial is https://www.curseforge.com/minecraft/mc-mods/fabric-api/files/3341973 +
  
 +Please follow the [[player:tutorials:server:windows|Installing a Fabric Server]] page to install Java 17 and the fabric server.