How to make a bukkit server guide.
- Download CraftBukkit’s latest build: CraftBukkit – Recommended Build
- Put the .jar file in the directory you’d like the server to run from
- 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
@ECHO OFF SET BINDIR=%~dp0 CD /D "%BINDIR%" "%ProgramFiles%Javajre6binjava.exe" -Xincgc -Xmx1G -jar craftbukkit-1.0.1-R1.jar PAUSE
If you are running Java 7 beta, type this instead:
@ECHO OFF SET BINDIR=%~dp0 CD /D "%BINDIR%" "%ProgramFiles%Javajre7binjava.exe" -Xincgc -Xmx1G -jar craftbukkit-1.0.1-R1.jar PAUSE
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.
@ECHO OFF SET BINDIR=%~dp0 CD /D "%BINDIR%" java -Xincgc -Xmx1G -jar craftbukkit-1.0.1-R1.jar PAUSE
Or, the following can be used (although may not work on all machines) It is a lot shorter than the previous ones.
@ECHO OFF java -Xincgc -Xmx1G -jar "%dp0craftbukkit-1.0.1-R1.jar" PAUSE
LinuxSee also: Setting up a remote Linux server
- Download CraftBukkit's latest recommended build.
- Put the .jar in a folder, for this example we'll use a generic one: ~/minecraft
- Move to the above directory in terminal with 'cd ~/minecraft'
- Create a new text document in the minecraft folder and name it minecraft.sh
- Edit the document and paste this into it:cat > minecraft.sh << EOF #!/bin/sh BINDIR=$(dirname "$(readlink -fn "$0")") cd "$BINDIR" java -Xincgc -Xmx1G -jar craftbukkit-1.0.1-R1.jar EOF chmod +x minecraft.sh
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/minecraft.sh' 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: 
For CentOS Users - A little more detailed page for CentOS.
Mac OS X
ALTERNATE METHOD [Only for Advanced Users]: Open Terminal (Found in Application/Utilities) and paste:
- 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 http://support.apple.com/kb/DL1421
- 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.
- Create a New FolderOpen up finder, and create a new folder in your Home folder named CraftBukkit
- 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
- Move the FileMove the file from the Downloads folder to the CraftBukkit folder you created.
- Rename the FileWe will rename it craftbukkit.jar
- Obtaining startup scriptTo easily start the server you will need a startup script. The following is a basic server script to start your server.
- Open up TextEdit and paste the following in#!/bin/bashcd "$( dirname "$0" )"java -server -Xmx2G -jar ./craftbukkit.jar
- Save the fileSave it in your CraftBukkit folder as start_server.command
- Allow the script to run
- Open up Terminal.app
- Type into Terminal.appchmod +x
Warning: Do not hit return
- drag the start_server.command into Terminal.app
- hit return
- 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: 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.cd ~/Desktop/ mkdir BukkitServer cd BukkitServer/ curl -O http://ci.bukkit.org/job/dev-CraftBukkit/promotion/latest/Recommended/artifact/craftbukkit-1.0.1-SNAPSHOT.jar 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".