If you're like me getting back into hosting a minecraft server, which I haven't done since windows 7 was a hot OS. You're probably confused with the assortment of windows errors that are popping up when you're running Java on your system.
I am just going to break it down into some easy key steps for everyone who is having this same issue. Who has been searching for google to get answers. Only to be flooded with sites with too many ads and popups. That are not very helpful... *Rolls eyes* it the late 90's web marketing crazy all over again.
1. With Microsoft's Purchase of Mojang. They only use the SDE JDK offline version of Java. For servers that are v1.17+ This can be found at the first provided link and you can select your OS in the download window field at the top of the extension on the page. (Surprise Linux is supported.) Make sure you keep this up to date as you update your server or you will see a return of this conflict.
3. After that you need to create a bat file with notepad. Using this command line. java -Xmx1024M -Xms1024M -jar server.jar. I named my bat file. MCSI.bat(MineCraft Server Initializer.) Run it and the Server.jar will create it's own set of system files.
Once the cmd window closes. You will be left with a notepad file named eula. change the false value to "true"
Congratulations you have set up a local minecraft server. For any other advanced online hosting there are lots of video on setting up games servers from a dedicated host with a IP address which to get you pointed in the right diection from here. You will need to open the server.properties file with notepad and configure your system as per your hosts specs and requirements.
I hope this helps everyone who had to upgrade to windows 10+
If you're like me getting back into hosting a minecraft server, which I haven't done since windows 7 was a hot OS. You're probably confused with the assortment of windows errors that are popping up when you're running Java on your system.
I am just going to break it down into some easy key steps for everyone who is having this same issue. Who has been searching for google to get answers. Only to be flooded with sites with too many ads and popups. That are not very helpful... *Rolls eyes* it the late 90's web marketing crazy all over again.
1. With Microsoft's Purchase of Mojang. They only use the SDE JDK offline version of Java. For servers that are v1.17+ This can be found at the first provided link and you can select your OS in the download window field at the top of the extension on the page. (Surprise Linux is supported.) Make sure you keep this up to date as you update your server or you will see a return of this conflict.
https://www.oracle.com/java/technologies/downloads/
2. Microsoft hasn't provided a system update that adds the Environment Variables when installing Minecraft and the server.jar.
There are tones of videos to do this, where most don't even handle the first issue I had.
once you navigate to System Properties Environment Variables section you will want to make a new one. Where the Variable is.
_JAVA_OPTIONS (first input value)
and the Value is
-Xmx1024M (second input value)
as per https://www.minecraft.net/en-us/download/server insturctions.
3. After that you need to create a bat file with notepad. Using this command line. java -Xmx1024M -Xms1024M -jar server.jar. I named my bat file. MCSI.bat(MineCraft Server Initializer.) Run it and the Server.jar will create it's own set of system files.
Once the cmd window closes. You will be left with a notepad file named eula. change the false value to "true"
Congratulations you have set up a local minecraft server. For any other advanced online hosting there are lots of video on setting up games servers from a dedicated host with a IP address which to get you pointed in the right diection from here. You will need to open the server.properties file with notepad and configure your system as per your hosts specs and requirements.
I hope this helps everyone who had to upgrade to windows 10+
It is not recommended to use the Environment Variables to handle the Java versions
With installing a Java version, the Environment Variables will be set - do not make any changes there
To handle the Java version for your server, you have to use the start.bat
Referring to the Minecraft server version, you will need a specific Java version:
Minecraft 1.16.5 and older: Java 8
Minecraft 1.17: Java 16
Minecraft 1.18 and newer: Java 17
To set the Java version for a 1.19 server, you change the script from
to
For a server, more RAM is useful
>> Link to Curseforge <<