1
Minecraft local server batch file help
Hi, I am a complete novice at this so please be understanding.
I have tried several versions of batch file to get my local server running with no luck. I am hoping that someone can show me what to create one with the following info.
Win 7 Home Premium 64 bit with 4gb ram.
Java location - c:\Program Files (x86)\java\jre1.8.0_60\bin\java.exe
Minecraft server location - c:\Users\Minecraft\Desktop\Minecraft\minecraft_server.1.8.8.exe
Obviously somewhere in the batch file I need to assign a reasonable amount of memory, so that needs to be included.
Please help.
Thanks
I have tried several versions of batch file to get my local server running with no luck. I am hoping that someone can show me what to create one with the following info.
Win 7 Home Premium 64 bit with 4gb ram.
Java location - c:\Program Files (x86)\java\jre1.8.0_60\bin\java.exe
Minecraft server location - c:\Users\Minecraft\Desktop\Minecraft\minecraft_server.1.8.8.exe
Obviously somewhere in the batch file I need to assign a reasonable amount of memory, so that needs to be included.
Please help.
Thanks
7
Make sure the jar file is the same name as the thing in the batch file. like the jarfile could be called spgiot-10232.jar then the batch file would need to say spigot-10232.jar
I don't know what happened there, I tried to attach a screenshot and it didn't attach
OK, have installed the jar file in a new directory and have put the following batch file in the same directory on the server pc:
@echo off
java -Xmx1024M -jar minecraft_server.1.8.8.jar
pause
When I run the batch file I get the attached image:
When I try to attach to the server from another pc I get:
Failed to connect to the server, Invalid session
help...
@echo off
java -Xmx1024M -jar minecraft_server.1.8.8.jar
pause
When I run the batch file I get the attached image:
When I try to attach to the server from another pc I get:
Failed to connect to the server, Invalid session
help...
maybe add "pause" on a new line under the code to have a chance to view the log when it exits or to view errors...
also add "@ECHO OFF" on a new line above the code, this will make it all a bit cleaner...
also add "@ECHO OFF" on a new line above the code, this will make it all a bit cleaner...
Just delete the EXE and put the JAR in the folder with the batch file.
Do I need to delete the .exe install and install the jar version?
Thanks
Thanks
All you need in the batch file is:
Where 1024M is 1024MB, or 1GB.
I also see that you're using the server executable. You should be using the JAR file.
java -Xmx1024M -jar minecraft_server.1.8.8.jar
Where 1024M is 1024MB, or 1GB.
I also see that you're using the server executable. You should be using the JAR file.
