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
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.
Plus, make sure you didn't rename the server .jar file (it should be called minecraft_server.14w25b.jar)
try making a bat file with this: