Run any Play Framework Application as a Windows Service

How to Run any Play Framework Application as a Windows Service with AlwaysUp

Automatically start your Java/Scala web application whenever your computer boots and keep it running 24x7 in the background. No need to log on


Last Updated on September 30, 2026

The Play Framework is a modern development environment focusing on the construction of highly scalable web applications in Java and Scala.


To install a Play Framework application as a Windows Service with AlwaysUp:

  1. Install Play, if necessary.

    Make sure that you can run your application from a command prompt with "sbt run". That's a prerequisite before getting AlwaysUp involved.

    For this tutorial, we created a simple Java-based application that returns a simple acknowledgement to the browser:

    Play application running

  2. Download and install AlwaysUp, if necessary.

  3. Start AlwaysUp.

  4. Select Application > Add to open the Add Application window:

    Add Application

  5. On the General tab:

    • In the Application field, enter the full path to the sbt.bat.

      If you installed sbt in the default location, this is:

      C:\Program Files (x86)\sbt\bin\sbt.bat
    • In the Arguments field, enter run.

    • In the Start in directory field, enter the folder containing your Play application.

    • In the Start the application field, select Automatically, but shortly after the computer boots. That tells AlwaysUp to launch Play 1-2 minutes after a reboot — after critical Windows Services (such as event logging and networking) have fully initialized and are ready to go.

    • And in the Name field, enter the name that you will call the application in AlwaysUp. We have entered Play App but you can specify almost anything you like:

    Play Framework Application Windows Service: General Tab

  6. Move to the Logon tab and enter the user name and password of the Windows account in which you installed and run your Play application. Java and sbt may need to run in this account to find your environment variables and other settings:

    Play Framework Application Windows Service: Logon Tab

  7. Switch to the Startup tab and check the Ensure that the Windows Networking components have started box. This informs AlwaysUp that Play needs TCP/IP networking support to do its work:

    Play Framework Application Windows Service: Startup Tab

  8. Click Save. In a couple of seconds, an application called Play App will show up in the AlwaysUp window.

    At this point, your Play app is installed as a service. But it's not running and the state will be "Stopped":

    Play Framework Application Windows Service: Installed

  9. To start the application from AlwaysUp, choose Application > Start "Play App". The state will change to "Running" and after a few seconds you should be able to access your application in the browser:

    Play Framework Application Windows Service: Running

  10. That's it! Next time your computer boots, your Play application will start up immediately, without anyone needing to log on. Please restart your PC now and test that the application works as expected after Windows comes back to life.

    And please feel free to edit your configuration in AlwaysUp to check out the many other settings that may be appropriate for your environment. For example, send email alerts, establish a weekly restart to cure memory leaks, set up a network health check, etc.


Play Application not working properly as a Windows Service?

  • Consult the AlwaysUp Troubleshooter — our online tool that can help you resolve the most common problems encountered when running an application as a Windows Service.

  • From AlwaysUp, select Application > Report Activity > Today to bring up an HTML report detailing the interaction between AlwaysUp and Play. The AlwaysUp Event Log Messages page explains what each message means.

  • Browse the AlwaysUp FAQ for answers to commonly asked questions and troubleshooting tips.

  • Contact us and we will be happy to help!

Our 14,000+ customers include...
AlwaysUp is fully compatible with Windows 11 AlwaysUp is fully compatible with Windows Server 2025
Over 97,000 installations, and counting!
 
AlwaysUp is number 1! Run as a Service with AlwaysUp

Rock-solid for the past 20+ years!