Arqade is a question and answer site for passionate videogamers on all platforms. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have been having a difficult time configuring the Minecraft server to start with Windows. Here's the situation:

I have a Windows Server 2008 hosted at GoDaddy which I use for my web development and such. It has really powerful hardware which most of the time is not utilized (Core 2 Quad @2.5Ghz, 8GB RAM, etc). I have had the server configured to restart automatically every night at 2AM just to keep it refreshed. Well, I spent hours trying different ways to configure the Minecraft server to startup after the computer boots, but I've had no luck and finally gave up. The server hasn't been restarted in like a month thanks to that...

So, I ask for any assistance on how I can configure a scheduled task that will startup the Minecraft server after boot.

share|improve this question
I believe every version of Windows has a "Startup" programs folder, which does just this. – Corey Dec 9 '10 at 0:02
@Corey, severs generally do not auto-login as a user. Items in the Startup folder are only executed when a user logs in with Explorer.exe as the shell. – Zoredache Dec 9 '10 at 0:27
I'm working on a service based minecraft server, which works at the moment just isn't pretty. I could do with some early testers to help work out dependencies etc, I'll post an answer to this Q when it's ready for anyone else to try! – Richard Benson Jan 20 '11 at 14:47
@Richard, I'd be willing to try it. Are you going to have the ability to have commands since it's a service? – Gup3rSuR4c Jan 20 '11 at 18:24
there's a web interface running inside the service, at the moment it can only start/stop and view logs, but the idea is to be able to send commands. No plans on making it a "wrapper" so it's the vanilla server experience, but may eventually support hMod et al. not sure if it's cool to put links here so email me[at] and I'll ping you a github link. – Richard Benson Jan 21 '11 at 12:24

It generally doesn't work that great, but you can define you own services. You will need to figure out some way to make sure the service performs a save.

How To Create a User-Defined Service

From SF see these questions.

Create a schedule task that runs at boot

If all else fails, you may have to do as Corey suggests. Configure your server to auto-login as some account, and just place a shortcut in the startup group.

share|improve this answer

Edit: This app is actually quite mature and reliable now and not really an "early release" anymore. It's still being worked on and recently added support for running multiple servers at the same time (e.g. for trialling the weekly builds).

If you are happy with the "vanilla" experience, I have (as mentioned in comments) made an application that keeps Minecraft running as a service. You can download an early release direct from GitHub which gives you Vanilla Minecraft as a service with a web-based console.

share|improve this answer

What you're looking for is a tool that can turn any arbitrary Windows process/executable into a Windows service.

There are three tools that I can recommend get the job done:

  • SrvAny: Free but requires more in-depth technical detail to setup. Not compatible with ALL apps.
  • FireDaemon: Not free but is extremely reliable and effective. Try the 30-day trial.
  • Java Service Wrapper: Free for personal use. Works for java apps.

Set your Windows service as 'Automatic' and you're done!

share|improve this answer

On a windows machine, you don't need anything fancy or to run anything "as a service". The quickest and easiest way I've done this is using task scheduler. Simply create a basic task and point the "task/script" at the java executable (with full path): "C:\Program Files (x86)\Java\jre1.8.0_25\bin\java.exe"

and then in the optional parameters: (some of these could be wrong, but hey, it's an example) -Xms1024M -Xmx1024M -jar craftbukkit-1.7.2-R0.3-20131221.081113-1.jar -o true

I also set a "Start In" path, so I didn't have to fully reference my jar file too: D:\Minecraft

I also have a script that does a backup of the minecraft folder every night that deletes zip files after a few days. I run that at 4:00am.

So on my server I have: - the MC server startup automatically using a scheduled task at 5:00am - minecraft server auto-shutdown at 3:00am - the backup .bat file run at 4:00am - Go back to step 1.. :-)

I hope this helps someone.

share|improve this answer
NOTE: you can't run a .bat file that runs the MC server because it runs and exits the script as soon as the command is executed and I believe the server processes stop too. – Ads Oct 25 '14 at 22:34
This was the easiest method I never even thought to consider. Extremely simple to get running and much appreciated. – lthibodeaux Oct 16 '15 at 4:56

With os x I made a simple script that I could add that to the startup items.

I'm guessing that you could just make a shortcut to the server application and put that in your startup folder.

share|improve this answer
-1 this does not work see comments on the question. – Joe the Person Aug 18 '12 at 5:00

You can make a .txt file, rename it as whatever.cmd and then change the text to

start (the address, for example C:\Desktop\....and so on)

then in the cmd file you may use any command prompt action such as start. I hope this is helpful.

share|improve this answer

You could just make a batch file that starts the exe instead, have the batch shortcut in the startups folder and have it route to the minecraft_server.exe

The batch file was a workaround the issue of Windows 2008 server not allowing user login apps to start.

share|improve this answer

You should run your Minecraft Server as a Windows Service to achieve what you want. There's no need to use scheduled tasks. There's a detailed guide on how to do this here:

share|improve this answer
Please summarize the information from the linked guide. That way, if the page ever goes down, your answer is still valid. Besides, it saves people a click. – Frank Aug 18 '14 at 16:24

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.