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
player:tutorials:mc-1.17-server [2021/06/10 23:01] calloattiplayer:tutorials:mc-1.17-server [2023/09/13 20:44] (current) – Delete nebelnidas
Line 1: Line 1:
-**Q: My local Minecraft/Fabric 1.17 Server crashes!** 
- 
-A: The server is probably using Java 8. Minecraft 1.17 needs Java 16. 
- 
-**Q: What do I do now?** 
- 
-A: There are many options. One alternative 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''  
- 
-(When you run the batch file, ''%~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. 
- 
-**Q: I don't want to use a java zip file, is there any way I can install java 16?** 
- 
-A: Go here https://adoptopenjdk.net/releases.html?variant=openjdk16&jvmVariant=hotspot and pick your Operating System, pick x64, and download the Java JRE installer file (msi for Windows) 
- 
-**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 
- 
- 
  
player/tutorials/mc-1.17-server.1623366116.txt.gz · Last modified: 2021/06/10 23:01 by calloatti