Wrong Java Version
First, open up a command prompt (cmd.exe). Then type “Java -version” inside it. It should look exactly like this:
openjdk version “21.0.4” 2024-07-16 LTS
OpenJDK Runtime Environment Microsoft-9889606 (build 21.0.4+7-LTS)
OpenJDK 64-Bit Server VM Microsoft-9889606 (build 21.0.4+7-LTS, mixed mode, sharing)
If the installation appears to be an “OpenJDK” labelled as a JRE instead of a JDK, it will not be compatible. You must install a JDK version of Java, ideally version 21 or higher, as the latest software requires Java 21, which was released in 2023. Since this is a recent release, many users may not have it installed yet.
Before you install anything, you need to uninstall the previous version of java. Go to “Add or remove programs”, and look up “java”. Uninstall the one that shows up. To confirm the deletion, open up a new command prompt (cmd.exe) window, not the old one we used earlier. And see if anything comes up. If there is a new message with no versions, then you successfully uninstalled it.
Now you can install the supported version of Java. This is used to develop the app & all testing environments I use to see if the application works. The default version of Java is listed on the home page of the website page. Or you can download it here: https://learn.microsoft.com/en-gb/java/openjdk/download
Ram Issues
Due to the way Minecraft handles its RAM, it uses -Xmx and -Xms. You NEED to make sure -Xmx is at least the same value or higher than -Xms. Xms acts as a minimum amount of ram the server will take up. The default value I set was 1024Mb. So if you set your RAM to 512, it will allocate 1024Mb RAM, but give it 512Mb, causing the application to not know what to do, and cause it to crash instantly. If you go to your server Settings inside the terminal, you can see what your current RAM is set to. Make it 4096Mb if your system supports it and see if this has solved the issue.
If it does not, I suggest creating a new server to remove all possibilities of causing data deletion on a main server, and in case it may be a plugin causing the server to not run. If you create a new server and it works flawlessly. Then I suggest copying the server.jar file from the other server to this new one. And see if it’s the jar. As there may be a new release of that current server which is no longer supported. Which has happened in the past.
Any other issues?
Contact me on my discord server, https://discord.gg/WnMHt7Dteb and ask in #support, or Private message me. I will be happy to help out when I can.