How to Make a Minecraft Bukkit Server Easy! Pc Mac AND Linux

How to make a bukkit server guide.


Auto Installer:

  1. ImminentFate’s CraftBukkit Installer

Manual (recommended):

  1. Download CraftBukkit’s latest build: CraftBukkit – Recommended Build cb_rec_date_mcver_bold.png
  2. Put the .jar file in the directory you’d like the server to run from
  3. Open notepad and type:

This will work with any version of java and windows. If for some reason it doesn’t work try each one below.

java -Xmx1G -Xms1G -jar craftbukkit-1.0.1-R1.jar
"%ProgramFiles%Javajre6binjava.exe" -Xincgc -Xmx1G -jar craftbukkit-1.0.1-R1.jar

Lightbulb.png Note: If you are running java in 32-bit mode on a 64-bit machine, change %ProgramFiles% to %ProgramFiles(x86)%

If you are running Java 7 beta, type this instead:

"%ProgramFiles%Javajre7binjava.exe" -Xincgc -Xmx1G -jar craftbukkit-1.0.1-R1.jar

4. Save the document as RUN.bat (not as a .txt)5. Double Click RUN.bat and you’re away!6. When you’re done toying, issue “stop” command in console.

Please note that the full directory of the java.exe doesn’t need to be entered. just entering “Java” will do just fine, so one could use the following codes to ensure universal compatibility.

java -Xincgc -Xmx1G -jar craftbukkit-1.0.1-R1.jar

Or, the following can be used (although may not work on all machines) It is a lot shorter than the previous ones.

java -Xincgc -Xmx1G -jar "%dp0craftbukkit-1.0.1-R1.jar"
LinuxSee also: Setting up a remote Linux server
  1. Download CraftBukkit's latest recommended build.
  2. Put the .jar in a folder, for this example we'll use a generic one: ~/minecraft
  3. Move to the above directory in terminal with 'cd ~/minecraft'
  4. Create a new text document in the minecraft folder and name it
  5. Edit the document and paste this into it:
 cat > << EOF
 BINDIR=$(dirname "$(readlink -fn "$0")")
 cd "$BINDIR"
 java -Xincgc -Xmx1G -jar craftbukkit-1.0.1-R1.jar
 chmod +x

      6. Save the shell and make sure that it is executable, then open it in terminal. A console window will open and close quickly. 

6. Then, in terminal, type '~/minecraft/' to run to start the server. 7. When you're done playing around, issue the "stop" command in console.

If you plan to run the server more permanently an init script like this one is recommended: [1]

For CentOS Users - A little more detailed page for CentOS.

Mac OS X
  1. Install JavaSince OS X 10.7 Java does not come packaged with OS X. You will need to install java from the Apple's website
  2. Obtaining the Server FilesTo run a server you will need the server jars, i.e. the server files. We will need a place to put the files.
    1. Create a New FolderOpen up finder, and create a new folder in your Home folder named CraftBukkit
    2. Download the FileDownload the server files. You can download the latest builds from the front page of the wiki.Note: Download the stable build if you are not chasing the cutting edge in the development build
    3. Move the FileMove the file from the Downloads folder to the CraftBukkit folder you created.
    4. Rename the FileWe will rename it craftbukkit.jar
  3. Obtaining startup scriptTo easily start the server you will need a startup script. The following is a basic server script to start your server.
    1. Open up TextEdit and paste the following in#!/bin/bashcd "$( dirname "$0" )"java -server -Xmx2G -jar ./craftbukkit.jar
    2. Save the fileSave it in your CraftBukkit folder as start_server.command
    3. Allow the script to run
      1. Open up
      2. Type into Terminal.appchmod +x
        Warning Warning: Do not hit return
      3. drag the start_server.command into
      4. hit return
  4. Starting the serverFrom this point on you can start the server by double-clicking start_server.command.You will need to run the server once for it to generate some configuration files.
    Warning Warning: To stop the server, do not close the terminal/command prompt window. Instead, type 'stop' into the console. Closing the terminal window without stopping the server could lead to corruption of the save files.
ALTERNATE METHOD [Only for Advanced Users]: Open Terminal (Found in Application/Utilities) and paste:
cd ~/Desktop/
mkdir BukkitServer
cd BukkitServer/
curl -O
mv craftbukkit-1.0.1-SNAPSHOT.jar CraftBukkit.jar
echo "cd ~/Desktop/BukkitServer/" >> start.command
echo "java -Xincgc -Xmx[RAM]M -jar CraftBukkit.jar" >> start.command
chmod +x start.command
echo "You should update your server weekly!"
open -a TextEdit start.command

Textedit should open a document called "LaunchServer.command". Find [RAM] and replace it with:
512 or 1024 or 1536 or 2560 or 3072 or 5120

That is the ram amount the server will have.
512=512MB; 1024=1GB; 1536=1.5GB; 2560=2.5GB; 3072=3GB; 5120=5GB

The server is installed on your Desktop, in "Bukkit Server". To start it double click "LaunchServer.command". 

comments powered by Disqus