Minecraft Blogs / Tutorial

How to create a server (Windows)

  • 1,331 views, 1 today
  • 8
  • 3
  • 6
PiggyPorker's Avatar PiggyPorker
Level 55 : Grandmaster Explorer
65
Hopefully this blog will help you fellow minecraftians out there in the process of setting up a bukkit server for windows!

Newb-Friendly Tutorial
If you are having trouble following the above tutorials just follow this 'Noob Friendly Tutorial' 1. Download this file
2. Follow the instructions in the setup you downloaded.
3. Congratulations, you've installed Bukkit!

Preliminary notes

Note: The name of the craftbukkit .jar file must match the one you download. (currently craftbukkit-0.0.1-SNAPSHOT.jar)
Note: Unless you have a multi-homed machine and know what this means/requires, server-ip= in server.properties MUST remain unchanged from default and be blank.
Note: When running step 5 for the first time, errors will show up. Do not worry as this is normal; the server is generating files and folders needed to run.

Downloading
1. Download CraftBukkit's latest recommended build
2. Put the .jar in the desired directory

Verifying and installing the latest java
1. Make sure that you have Java 6 installed. To do so, we first need to open up CMD.
  • In Vista/7 open the start menu and enter cmd in the search field, and press 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.
  • At the command prompt, enter the following command, and press enter: java -version
  • Java then should display its version, and should read "java version 1.6"

2. If you have a previous version (less than 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 the java download page

3. After you installed the latest java try again with java -version.
  • If you get an error at this point, try the following to add java to your system path.

  1. Right click Computer
  2. Click properties
  3. Click "Advanced system settings"
  4. Click "Environment Variables"
  5. Under system variables, find the Path variable.
  6. Click edit, and append to the end of the value: ";C:Program Files (x86)Javajre6bin"
  7. Now re-open the command prompt and try again.


Installation
1. Open notepad and type:
Note: If you are running java in 32bit mode on a 64bit machine, change %ProgramFiles% to %ProgramFiles(x86)%@ECHO OFF
SET BINDIR=%~dp0
CD /D "%BINDIR%"
"%ProgramFiles%Javajre6binjava.exe" -Xincgc -Xmx1G -jar craftbukkit-0.0.1-SNAPSHOT.jar
PAUSE

Note: To start the server with more memory edit the code in the batch file you created, and increase/decrease the numbers to greater or less than 1024. The default amount, 1024, allocates 1 GB to the server application. Don't allocate more memory than you currently have!
2. Save the document as RUN.bat (not as a .txt)

3. Double Click RUN.bat and you're away!
4. When you're done on your server, issue "stop" command in console (this is very important)

Configure and Connect

Please subscribe and give me an UP if this was helpful to you, comments are encouraged too!
Tags

Create an account or sign in to comment.

1
03/11/2013 2:02 pm
Level 9 : Apprentice Narwhal
Dark_ACE10
Dark_ACE10's Avatar
Can you create a Direct Link to the download? My computer blocks adfly links. Plus it blocks Minecraft.net so if you can make it so that i can just download the file here then that would be great.
1
01/08/2012 5:44 pm
Level 21 : Expert Cake
gorillaman123456HI
gorillaman123456HI's Avatar
hey how do u set it up so other players can come ?
1
10/19/2011 2:08 am
Level 23 : Expert Dragonborn
Zingerdude
Zingerdude's Avatar
Hey You know how it Says- 'java' is not recognized as an internal or external command, operable program or batch file.",

Whatd do you have to do when it says-'32bit:' is not recognized as an internal or external command, operable program or batch file.",

I Have No Idea What To Do From There.

It loads but it wont become an internet server with Hamachi or anything. Any ideas how to fix it. And I Did check my microsoft and it said 32 bit was the bit im using not 64.
1
06/09/2011 10:55 am
Level 2 : Apprentice Explorer
samknash22
samknash22's Avatar
Thank you! This was super helpful! I've got a server running now thanks to you!
1
06/09/2011 4:24 pm
Level 55 : Grandmaster Explorer
PiggyPorker
PiggyPorker's Avatar
no problems!
1
06/24/2011 12:30 am
Level 2 : Apprentice Explorer
samknash22
samknash22's Avatar
I'll send you the IP if you want to check it out.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome