I did "java -version" in CMD and I get this: java version "1.8.0_25" I was watching a video from YouTuber TheKickBackSpot and it runs minecraft_server.exe from minecraft.net and I try this code in "run.bat": " @ECHO OFF "%ProgramFiles%\Java\jre7\bin\java.exe" -Xmx1024M -Xms1024M -jar minecraft_server.exe PAUSE and I get something similar to this when I run it: The system cannot find the specified path.
Dr_Nickles Try this. It works for me. Echo OFF "%ProgramFiles(x86)%\Java\jre7\bin/java.exe" -Xmx512M -Xms512M -jar craftbukkit.jar PAUSE
I would just like to point out that you will get the same error, regardless of the Java version. Also, you are trying to make Java run an exe file. Java runs .jar files. As for the "file not found", make sure your minecraft_server.jar and your run.bat are both in the same folder.