I am having Problems With Launching a minecraft Server. I have tried spigot and open it with a batch file but it doesn't seem to work. I am on windows 10 the code for the batch file I am using is

java -Xmx2048M -jar minecraft_server.1.8.9 -o true

And it doesn't launch the jar file it says error unable to access jarfile minecraft_server.1.8.9

  • 1
    what is the full path and filename of the jar file? minecraft_server.1.8.9.jar? It probably can't find the file. try to give it a full path like C:\some\directory\minecraft_server.1.8.9.jar or whatever – Tim S. Feb 5 '16 at 19:29
  • Its in the same foulder So it shouldn't matter i think but i will try anyway – deathminer99 Feb 5 '16 at 20:23
  • stil not working – deathminer99 Feb 5 '16 at 20:30
  • I redirected it to my desktop so it should be easy for it to find it but it stil can't find it – deathminer99 Feb 5 '16 at 20:31
  • @MemoryPenguin's answer was basically what I was trying to say -- java is looking for a file without the jar extension because that's what you supplied. You have to provide the full pathname, even though Windows hides file extensions by default (which is stupid IMO). – Tim S. Feb 5 '16 at 21:38

Your launch command is missing the file extension. It should look like this:

java -Xmx2048M -jar minecraft_server.1.8.9.jar -o true

By default these extensions are hidden in Windows Explorer; you can turn them on (in Windows 10) by clicking on the View tab at the top of the folder and checking the box by 'File name extensions'.

File name extension toggle

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.