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.

Downloads

  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:
    runConsole.bat
  7. If everything looks ok, open up your wrapper.conf file and change the following settings as you see fit:
    wrapper.ntservice.name=Minecraft
    wrapper.ntservice.displayname=Minecraft 1.4
    wrapper.ntservice.description=Minecraft 1.4 with CraftBukkit.
  8. Then, run the following command to install the service:
    installService.bat

Helpful Hints

Here is my wrapper.conf file in case you’re having trouble. My directory names might be different, so take care.
wrapper.working.dir=
wrapper.console.loglevel=INFO
wrapper.console.title=yajsw
wrapper.ntservice.name=MC14v3
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
wrapper.on_exit.0=SHUTDOWN
wrapper.on_exit.default=RESTART
wrapper.filter.trigger.0=Exception
wrapper.filter.script.0=scripts\/trayMessage.gv
wrapper.filter.script.0.args=Exception
placeHolderSoGenPropsComeHere=
wrapper.java.app.jar = C:\\program files\\minecraft_server_3\\craftbukkit-b617.jar
wrapper.java.command = C:\\Program Files\\Java\\jre6\\bin\\java.exe
wrapper.java.classpath.1 = C:\\program files\\minecraft_server_3\\craftbukkit-b617.jar
wrapper.app.parameter.1 = -classpath
wrapper.app.parameter.2 = C:\\program files\\minecraft_server_3\\craftbukkit-b617.jar
wrapper.java.additional.1 = -Xincgc

Advertisements

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:

WordPress.com Logo

You are commenting using your WordPress.com 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