I've been trying to run a Minecraft server from my own PC.
Everything went smoothly, I changed the EULA to true, I started the server by double-clicking it, I even logged on to the server, until I tried specifying the amount of ram I wanted to allocate to the server. This needs to be done by command prompt, so I copied the command from the official server download page. I specified I wanted to give it 4GB of ram.
The command I used: java -Xms4096M -Xmx4096M -jar server.jar
It gave me an error: "Error: Unable to access jarfile server.jar"
This happened for any amount of ram I entered.
After some googling, I decided to specify the path cmd needed to take.
I used this command: path=c:\Users\Pieter\Documents\MinecraftServer>java -jar -Xms4096M -Xmx4096M server.jar
This did not give me an error, however after running this command nothing happened.
That's where I ran into a roadblock, I've searched the internet for hours and have yet to find a fix.
I also want to add that the command "path=c:\Users\Pieter\Documents\MinecraftServer>java -jar server.jar" does noting as well. It doesn't run server.jar, nor give me an error.