In this tutorial I will explain how to set up a server on your own home computer. This is not a professional tutorial, it will explain the very basics on how to install a working Minecraft server.
Windows
Setting up a Minecraft server under Windows is very easy.
Verifying Java version
First of all make sure that you have Java 6 installed. To do so first we need to open up CMD.
In Vista/7 open the start menu and enter cmd in the search field, followed by enter. In XP open the start menu and click Run, then enter cmd and press enter.
You can also hold the Windows key down and press R to open Run.
In CMD enter the following command followed by enter:
java -version
If everything goes well it should look something like this:
File:Cmd success.PNG
Make sure that you got version 1.6 (marked with a red box in the image)
Installing Java
If you got a previous version (it doesn't say 1.6) or you get this error: "'java' is not recognized as an internal or external command, operable program or batch file.", then you need to install/update the computers java version. You can do so at java.com download page
After you installed the latest java try again with java -version.
Setting up the Minecraft server
Start by downloading the latest Minecraft server here and save it to anywhere on your computer.
Create a new folder called "Minecraft Server" or something similar, Vista / 7 user should note that some locations require administrator to write files and if you install the server to a location that requires administrator the server will require administrator to work. I recommend C:\Users\<Your username>\Documents
Open the file you just downloaded, you should see a lot of files in it. Drag all files to the folder you created in the last step. (Note: WinRAR users will see this as a WinRAR compressed file, though WinRAR is not required to open the file)
Now the server is installed! All you need to do now is edit your settings, which you can do in Server.properties.
Starting the Minecraft server
To start the Minecraft server simply run start server.bat and it should start up.
For more information about how to run and maintain a server check Maintaining a server
Linux
This tutorial for how to set up a Minecraft server on Linux was designed for people who don't have a lot of experience with Linux. There is a more advanced tutorial in the forums. This tutorial was tested on Ubuntu 9.10 32-bit but should work with most Linux distros.
Verifying Java version
This step is pretty much the same as in Windows. Open the terminal from Applications > Accessories > Terminal. Enter java -version. It should look something similar to this screenshot from Windows:
File:Cmd success.PNG
Make sure that you got version 1.6 (marked with a red box in the image)
Installing Java
If you get java: command not found (which may be followed by more text) or if you do have another java version than 1.6 then you need to install java.
Simply type this in terminal and press enter:
sudo apt-get install openjdk-6-jre-headless
(Note: In Fedora and Red Hat you use sudo yum install openjdk-6-jre-headless)
If it asks for a password enter your password. If you get asked "Is this OK [y/n]" Enter Y and press enter if required.
Java is now installed
Setting up the Minecraft Server
Download the latest Minecraft server here.
Create a new folder in your home folder (Places > Home) called "minecraft_server" or something similar. Extract the contents of the .zip file to this folder.
To change the server settings edit the Server.properties file.
Start the Minecraft server
Open the terminal again (Applications > Accessories > Terminal).
Enter the following commands:
cd 'minecraft_server' (change minecraft_server to the same name of the folder you extracted the server to)
java -Xms512M -Xmx512M -cp minecraft-server.jar com.mojang.minecraft.server.MinecraftServer
For more information about how to run and maintain a server check Maintaining a server
Reporting problems in the forum
Before you can ask for help in the forums make sure that your problems is not listed in the Common Problems
If your problem is not listed you can create a new thread asking for help in the Server Administration Make sure to include as much information as possible:
- Operating system
- What you were trying to do
- What you did so far
- Any errors you encountered
- Screenshots of the problem (if possible)
Other tutorials
Here are some other tutorials on how to set up a Minecraft server.
Linux tutorial for more advanced users
Windows tutorial with focus on how to forward a port
Guide to setting up an alpha server using Virtualbox.