Installing Minecraft 1.4 with CraftBukkit as a Service

So, this has been a long-time coming; sorry folks. Next time, bug me with comments and I’ll move faster :P.

This is similar to my last post on the subject about getting Hey0 working, with a few tweaks.


  1. Download YAJSW from the YASJW SourceForge files page.
  2. Download the latest Minecraft Server build from the Minecraft Downloads page.
  3. Download the latest CraftBukkit from the Bukkit Instructions Page.

Prep Work

Set up your folders like so:

  • C:\Program Files\
    • Minecraft_Server\
      • yajsw\
        • bat\
        • build\
        • conf\
        • …etc
      • craftbukkit-b###.jar
      • run.bat
      • minecraft_server.jar

Installation Process

I followed my instructions for Minecraft /w Hey0, but when I ran genConfig it kept throwing the error: “ERROR: no classpath found -> abort”. My wrapper.conf file would end up blank.

To get around this, I performed the following steps:

  1. Open the ‘run.bat’ file provided by the craftbukkit download. Find the line that actually calls java, and add the following parameter respective of the actual craftbukkit version.
    -classpath "C:\program files\minecraft_server\craftbukkit-b617.jar"
  2. Now, double-click ‘run.bat’ to run the craftbukkit server.
  3. Open up task manager and find the PID of the java process running the craftbukkit server.
  4. Open a command prompt and nagivate to “C:\program files\minecraft_server\yajsw\bat”
  5. Run the following command:
    genConfig.bat <PIDNumber>
  6. Close the craftbukkit server you started in step 2, then run the following command to test your yajsw settings:
  7. If everything looks ok, open up your wrapper.conf file and change the following settings as you see fit:
    wrapper.ntservice.displayname=Minecraft 1.4
    wrapper.ntservice.description=Minecraft 1.4 with CraftBukkit.
  8. Then, run the following command to install the service:

Helpful Hints

Here is my wrapper.conf file in case you’re having trouble. My directory names might be different, so take care.
wrapper.ntservice.displayname=Minecraft 1.4 (v3)
wrapper.ntservice.description=Minecraft 1.4 with CraftBukkit.
wrapper.daemon.run_level_dir=${if (new File('\/etc\/rc0.d').exists()) return '\/etc\/rcX.d' else return '\/etc\/init.d\/rcX.d'}
wrapper.tray = true
wrapper.tray.port = 15002
placeHolderSoGenPropsComeHere= = C:\\program files\\minecraft_server_3\\craftbukkit-b617.jar = C:\\Program Files\\Java\\jre6\\bin\\java.exe = C:\\program files\\minecraft_server_3\\craftbukkit-b617.jar = -classpath = C:\\program files\\minecraft_server_3\\craftbukkit-b617.jar = -Xincgc


4 thoughts on “Installing Minecraft 1.4 with CraftBukkit as a Service

  1. Pingback: Installing the Hey0 Minecraft Server Mod as a Windows Service « windowsmasher

  2. Thanks a bunch for sharing this with all of us you really know what you’re speaking approximately! Bookmarked. Please additionally visit my site =). We can have a link alternate contract between us

  3. Pingback: [Sammelthread] Minecraft - Seite 53

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s