Problems With Hosting Minecraft Server

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
PAUSE

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


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

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

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