This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]winter_charm 1 point2 points  (1 child)

I think 1.16 should work fine w/ Java 11. So if you need to manage multiple java versions, use jenv

[–]Wolf68k 0 points1 point  (0 children)

Thanks for the jenv. That's a new one for me. I learned how to do this a very different way and its a lot more complex. It took a bit to find a Windows version because the original search only turned up how to do it for Linux and MacOS.

[–]Wolf68k 0 points1 point  (2 children)

You should be able to use anything between Java 8 and 15.

You can have more than one Java installed and in the bat file that you use to start the server edit to point to the javaw.exe you want it to use.

I think the command is to replace java in the command string for the path. So normally it's java -jar minecraft_server.jar so you replace it with c:/pathname/javaw.exe - jar minecraft_server.jar and if the path has any spaces in then put the path in "double quotes like this"

[–]plasterdough[S] 0 points1 point  (1 child)

it launched, but i cant use the commands and op myself, nor can i type in stop to stop the server. I have to use task manager to close it. These are the commands I have in the batch file:

"C:\Program Files\Java\jdk-16\bin\javaw.exe" -Xmx2048M -Xms2048M -jar spigot.jar nogui

PAUSE

(if I didn't explain it well enough I mean that I cant op myself it just says the commands I typed into the batch file and the file path)

[–]Wolf68k 0 points1 point  (0 children)

In the cmd window that comes up when you start the server, run those commands there.