I am trying to setup a private server on my PC and I downloaded a Minecraft server off of Minecraft.net, but when I try to run it I get the error "Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item." I've tried to right click on the server.jar > proprieties, and added all perms, but it still doesn't work, I also did this to the Javaw file.
To start a server on windows, you have to know that the java.exe is in you PC PATH variable (usually the java installer does it for yourself, but if you have java from other sources, it could as well not do it).
Then open cmd, use the cd command to get into the directory you installed the jar file (remember to set your wanted options in server.properties) and then run:
If you don't want the GUI popping up, you can add “nogui” (without quotes) at the end after server.jar, keep in mind that the windows console has a bug that may freeze the server if you start it up without the gui.
¹ Or whichever name you called the jar when you downloaded it.
² Thi is the official way, i recommend using the latter command line as the options are from the client version and improve the responsiveness.
I typed in what you said but it still diddnt work, I also tryed to use the instructions link yoou provided using java -Xmx1024M -Xms1024M -jar minecraft_server.1.16.1.jar nogui but it still says access is denied