06-20-2017, 10:02 AM
Hello all. i got another tutorial that i want to share in this forum. long time ago i made a minecraft server. i dont remember much
but i still remember how to set up the server.well lets start. first of all you have to download the server files.
https://minecraft.net/en-us/download/server
run the file minecraft_server.jar. and wait a little bit that it will download and create your server files
after the server will crash if you run him again. you need to accept EULA USER LICENSE AGREEMENT
https://account.mojang.com/documents/minecraft_eula
after you done reading the user lincense. enter Eula.txt and set eula = false to eula = true.
If you get an error such as "Can't save server.properties" and your screen fills with useless, gibberish text, then run the Minecraft Server as administrator by right-mouse clicking on it and choosing 'Run as administrator'. (You may need the administrator password to do this.)
How to create .bat file to store the commands?
To start the configured Minecraft server, without having to enter all commands every time, you can create a .bat file in the server folder. You can include the
command to tell the window to stay open after the /stop command is issued. Useful if you want to read what happened as it shut down.
Here is an example of a bat file:
java -Xms1024M -Xmx2048M -jar minecraft_server.jar nogui
pause
Double click the file to start your server. You may get a "Class_Not_Found" and ServerGuiConcole error, just ignore these errors and you should see your "Server Thread/INFO" dialog start the server.
How to config From The Command Line?
Both the Java and the executable version can be run from the Windows command prompt/line with extra parameters to configure, for example, memory usage. As we currently know there is no command prompt for java on the Windows platform that will run these commands correctly. That however is subject to change.
To start the server, change to the Minecraft server folder (find the file path to which your server's jar file is) and open the windows command prompt (in Start, just type cmd and it should have a file name of cmd.exe), then enter the following command:
Replace
with the server application file name, for example
.
If you prefer not to use the server's Graphical User Interface (GUI) to enter administration commands, simply add the option
to the end of the command:
Some people have reported that this requires (significantly) less memory and CPU resources.
You can also replace the
command with
. Javaw.exe is identical to Java.exe but there is no associated console window. This may be preferable when using a .bat file. (See the next section.) Note however that Javaw also doesn't show any error messages in the command window if anything is wrong.
Using the
and
parameters, the initial and maximum memory size for Java can be specified. By default, your server runs with about 100 MB of RAM, which is very little. Most people will change their server to run with more, for example:
if your server is on a 64-bit computer using 64-bit Java.
Add
to tell the server to run in online mode so only authenticated users can join.
If you have less than 1024MB RAM, the above line may cause problems with swapping and out of memory conditions, which makes the game hard to play.
Thats All As Far As I Remember... Hope I Helped You In Some Way. Any Suggestions to topic accepted in replys.
if you got issue Post Here. I Took Some Of The Lines Here From http://minecraft.gamepedia.com/Tutorials...p_a_server
you can take a look there for full explaination! good luck to your minecraft server! hope it will grow like this community!
Regards -OldMeister
but i still remember how to set up the server.well lets start. first of all you have to download the server files.
https://minecraft.net/en-us/download/server
run the file minecraft_server.jar. and wait a little bit that it will download and create your server files
after the server will crash if you run him again. you need to accept EULA USER LICENSE AGREEMENT
https://account.mojang.com/documents/minecraft_eula
after you done reading the user lincense. enter Eula.txt and set eula = false to eula = true.
If you get an error such as "Can't save server.properties" and your screen fills with useless, gibberish text, then run the Minecraft Server as administrator by right-mouse clicking on it and choosing 'Run as administrator'. (You may need the administrator password to do this.)
How to create .bat file to store the commands?
To start the configured Minecraft server, without having to enter all commands every time, you can create a .bat file in the server folder. You can include the
Code: (Select All)
pause
command to tell the window to stay open after the /stop command is issued. Useful if you want to read what happened as it shut down.
Here is an example of a bat file:
java -Xms1024M -Xmx2048M -jar minecraft_server.jar nogui
pause
Double click the file to start your server. You may get a "Class_Not_Found" and ServerGuiConcole error, just ignore these errors and you should see your "Server Thread/INFO" dialog start the server.
How to config From The Command Line?
Both the Java and the executable version can be run from the Windows command prompt/line with extra parameters to configure, for example, memory usage. As we currently know there is no command prompt for java on the Windows platform that will run these commands correctly. That however is subject to change.
To start the server, change to the Minecraft server folder (find the file path to which your server's jar file is) and open the windows command prompt (in Start, just type cmd and it should have a file name of cmd.exe), then enter the following command:
Code: (Select All)
java -jar <server-file>
Replace
Code: (Select All)
<server-file>
with the server application file name, for example
Code: (Select All)
minecraft_server.1.9.4.jar
.
If you prefer not to use the server's Graphical User Interface (GUI) to enter administration commands, simply add the option
Code: (Select All)
nogui
to the end of the command:
Code: (Select All)
java -jar minecraft_server.jar nogui
Some people have reported that this requires (significantly) less memory and CPU resources.
You can also replace the
Code: (Select All)
java
command with
Code: (Select All)
javaw
. Javaw.exe is identical to Java.exe but there is no associated console window. This may be preferable when using a .bat file. (See the next section.) Note however that Javaw also doesn't show any error messages in the command window if anything is wrong.
Using the
Code: (Select All)
Xms
and
Code: (Select All)
Xmx
parameters, the initial and maximum memory size for Java can be specified. By default, your server runs with about 100 MB of RAM, which is very little. Most people will change their server to run with more, for example:
- java -Xms512M -Xmx1G ...java -Xms1024M -Xmx1024M ...java -Xms1G -Xmx2G ...
Code: (Select All)
-d64
if your server is on a 64-bit computer using 64-bit Java.
Add
Code: (Select All)
-o true
to tell the server to run in online mode so only authenticated users can join.
If you have less than 1024MB RAM, the above line may cause problems with swapping and out of memory conditions, which makes the game hard to play.
Thats All As Far As I Remember... Hope I Helped You In Some Way. Any Suggestions to topic accepted in replys.
if you got issue Post Here. I Took Some Of The Lines Here From http://minecraft.gamepedia.com/Tutorials...p_a_server
you can take a look there for full explaination! good luck to your minecraft server! hope it will grow like this community!
Regards -OldMeister