So i keep downloading the jar file for my server but I get a message "Unknown network error" and the one in my downloads will launch and say "Invalid or corrupt file".
Comments 3
Also: Make sure you did not rename the .jar file. It should be named minecraft_server.14w25b.jar
If you really want to name it something else, though, just replace minecraft_server.14w25b.jar in the batch file with the new file name (make sure the .jar file stays a .jar file!).
This is a technical support issue; this site is for bug reports only. For technical support please use the Mojang Support Center.
Create a batch file with this in it:
and place it inside the folder where the server .jar is (the extension for a batch file is .bat). 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 the window opens but then closes instantly, add PAUSE to the end of the batch file. 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. If that does not work, replace the java in the .jar file with
or whatever your Java install directory is if yours is not the same. Double clicking the .jar file is not recommended and probably will not work.