Oct 06

This tutorial will help you setup your own minecraft server in linux.

1.    You need to install Java 1.6 , this will give you all the packages you need:

yum install java-1.6*

2.   Download latest minecraft server and unzip it into its own directory.  I used \home\mindcraft

wget http://www.minecraft.net/minecraft-server.zip

unzip minecraft-server.zip

2.    To Launch the server use this command.

java -cp minecraft-server.jar com.mojang.minecraft.server.MinecraftServer

3.   The first time you launch it, the server will create a few files after a few seconds ctrl-c to stop.

4.  Now that you have the config files created, put your username in both the admins.txt and the players.txt files.  Edit the server.properties and set the port number and change public =true

5. Run this command again

 java -cp minecraft-server.jar com.mojang.minecraft.server.MinecraftServer

You can access my server by this link, try it out if you like.

http://www.minecraft.net/play.jsp?server=3155c2ae2e916b23d93050e517c1411d

Errors you may get if you didn’t follow the above:

Failed to load Main-Class manifest attribute from
minecraft_server.jar

Exception in thread “main” java.lang.NoClassDefFoundError: minecraft-server/jar
Caused by: java.lang.ClassNotFoundException: minecraft-server.jar
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:334)
Could not find the main class: minecraft-server.jar. Program will exit.

written by admin \\ tags: , , , , , , , , , , , , , ,

One Ping to “How to setup MineCraft Server Linux – Ubuntu – Fedora – VPS server”

  1. how to setup a minecraft server on linux vps | Minecraft VPS Says:

    […] How to setup MineCraft Server Linux – Ubuntu – Fedora …www.highlogic.net/how-to/2010/10/how-to-setup-minecraft-server…5 Responses to “How to setup MineCraft Server Linux – Ubuntu – Fedora – VPS server” 1. DaVince Says: May 31st, 2011 at 11:48 am. Never use CTRL+C to stop … […]


5 Responses to “How to setup MineCraft Server Linux – Ubuntu – Fedora – VPS server”

  1. 1. DaVince Says:

    Never use CTRL+C to stop the server. It kills it rather than exiting cleanly. Use the “stop” command instead.

    Also, on Fedora, it seems to set up a firewall so you’ll have to edit/allow the connection settings. Otherwise it will just time out.

  2. 2. temporary email Says:

    Heya i?m for the first time here. I came across this board and I find It really useful & it helped me out much. I’m hoping to offer one thing back and help others like you helped me.

  3. 3. coolman2020 freebuild Says:

    its a feaking awsome server and i need help to build on it type in this
    name in a tab http://www.minecraft.net/classic/play/2bac2b504915ac8f23b2a9d27afb169f

  4. 4. coolman2020 freebuild Says:

    and i op you

  5. 5. Eagliod Says:

    This may sound really noobish, but how exactly do I access the server.properties? do I have to enter the command in a special way or do I have to be in a certain file location? I’m trying to change the seed of my world (it’s just water.)

Leave a Reply