Whenever i start my server and i press any key, it closes?

Okay, i created this minecraft server, and the command prompt opens, it says "press any key to continue" i pressed the any key and it closes. Also, it is unable to acces jarfile minecraft_server1.7.10.jar. I think you have to rename it to that, but to be sure, i ask you guys.

Right click on run or launch and click edit whatever it says at the end thats what you rename it to example: java -Xmx1024M -jar craftbukkit.jar -o false
PAUSE it says craft bukkit so rename it to that