mojira.dev
MC-58425

Snapshot server jar not extracting files

When I open the snapshot 14w25b server jar with java, it creates the server successfully, but it does not extract level and world files, like the normal server does. It just prepares a random world, and I can't edit the server properties or world data. I tried saving the .jar as a .exe, and I could not open it. I hope I'm not being stupid...

Comments 7

try making a bat file with this:

@echo off
java -Xmx1G -Xms1G -jar minecraft_server.jar -o true nogui

Create a batch file with this in it:

java -Xmx1G -Xms1G -jar minecraft_server.14w25b.jar

Where the -Xmx value is how much ram is allotted to the server (G for gigabytes, M for megabytes) and -Xms is how much it initializes with (setting it to the same as -Xmx is best). You can use javaw instead of java if you want to have no command prompt window pop-up and add nogui to the end of the batch file to make no console window pop-up (not recommended if you want to op people). Run the batch file and the server will start up like an exe; you can change out the worlds, change settings, etc. as necessary. If you get a window saying:

'java' is not recognized as an internal or external command, operable program, or batch file

then you need to set your path. Important note: You must be an administrator in the system to make these changes. First, type 'edit environment variables' into the start menu search bar and click on

Edit the system environment variables

Once the window opens, click Environment Variables... and scroll down to the Path or PATH variable in the system section. Then, click Edit... and append a semicolon to the end of the list if it isn't already there. Then, add the path to your JRE bin folder to the list. Example:
C:\Program Files\Java\jre7\bin
If your computer has a separate directory for your Java, you need to find it and add it to the list.
Now, you can exit out of all the windows and your batch file should run smoothly.

Where do I put the bat file? I just left it in the folder with the jar and it still didn't work.

Append PAUSE to the end of the batch file and then try to run it.

Oh thanks. I'll try it.

Plus, make sure you didn't rename the server .jar file (it should be called minecraft_server.14w25b.jar)

It worked thank you so much.

josh daily

(Unassigned)

Unconfirmed

Minecraft 14w25b

Retrieved