1

Minecraft local server batch file help

sambat2015 •8/20/15 12:43 pm
•
1.2k
•
8/20/2015 3:21 pm
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
Posted by
sambat2015
Level 1 : New Miner
0

  Have something to say?

Join • Sign in

7

DeJay
• 08/20/2015 3:21 pm
• Level 7 : Apprentice Modder
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
1
sambat2015
• 08/20/2015 2:38 pm
• Level 1 : New Miner
I don't know what happened there, I tried to attach a screenshot and it didn't attach
1
sambat2015
• 08/20/2015 2:11 pm
• Level 1 : New Miner
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...
1
Bertiecrafter
• 08/20/2015 1:27 pm
• Level 72 : Legendary System
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...
1
Leeberator
• 08/20/2015 1:06 pm
• Level 47 : Master Button Pusher
Just delete the EXE and put the JAR in the folder with the batch file.
1
sambat2015
• 08/20/2015 12:57 pm
• Level 1 : New Miner
Do I need to delete the .exe install and install the jar version?
Thanks
1
Leeberator
• 08/20/2015 12:49 pm
• Level 47 : Master Button Pusher
All you need in the batch file is:


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.
1

Welcome