Monday, September 12, 2011

Running Several Instance of Mincrafts Server as a Service on One Computer

We have one computer that acts as our server. We wanted to run several instances of the minecraft sever: classic, standard beta, and beta with mods.

I followed the instructions ( and creating three seperate folders:


Three services did get created but we were only able to connect to one of the servers.

Here is what I did to fix the issue. You actually might not need all of them but this does work:
1. Gave each minecraft server a separate port in the minecraft file

2. Modified the wrapper.config for yajsw to
A. turn off the system tray: wrapper.tray = false
B. run minecraft server with noui
# Java Additional Parameters

# Adds an environment to the application = -classpath =C:\\Minecraft-Servers\\Beta\\minecraft_server.jar =nogui

# Java Classpath (include wrapper.jar)  Add class path elements as
#  needed starting from 1
# YAJSW: all libs required by YAJSW are in the manifest of the wrapper.jar -> only classpath of your application is required\\Minecraft-Servers\\Beta\\minecraft_server.jar

# Java Application main class
# or jar file\\Minecraft-Servers\\Beta\\minecraft_server.jar