Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8906205
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T02:35:36+00:00 2026-06-15T02:35:36+00:00

I have a Play Framework 2.0 application that I want to deploy (production) on

  • 0

I have a Play Framework 2.0 application that I want to deploy (production) on Windows Server 2008 R2. How do I get it to run as a service?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T02:35:37+00:00Added an answer on June 15, 2026 at 2:35 am

    This worked for me on Windows 7:

    1. Create folder C:\my_app
    2. Go to your Play! app folder in command line and type

      play dist

    3. Copy generated “something-SNAPSHOT” folder to C:\my_app
    4. Download YAJSW and extract to C:\my_app
    5. In C:\my_app\something-SNAPSHOT\ make a new file start.bat and fill it with command like this:

      java -cp "C:\my_app\something-SNAPSHOT\lib\*" play.core.server.NettyServer

    6. Save it and launch start.bat. Your play app must start and work as usual. Take a look at server’s PID. You will use it in the next step.

    7. Now using command prompt go to C:\my_app\yajsw\bat and type

      genConfig.bat < PID from previous step >

    8. You generated C:\my_app\yajsw\conf\wrapper.conf. Edit this file and change these params like so:

      wrapper.ntservice.name=My App Name

      wrapper.ntservice.displayname=My App Name

      Save file.

    9. Terminate the start.bat script you started in 6. then, in C:\my_app\yajsw\bat launch

      runConsole.bat

      If app starts, do a Ctrl c (and answer y) to terminate the batch file and proceed to next step.

    10. To install service launch (Run as administrator)

      installService.bat

    11. To start service launch

      startService.bat

    Now you can see your “My App Name” service in Windows services.
    To stop service you can use stopService.bat. To uninstall it uninstallService.bat.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Play Framework application that sends emails using SMTP server. Now I
I have play-framework application that uses one module which I've created by play new-module
I have a JSON template under app/views/Application/movie.json in my Play Framework app. Normally you
I have a Play Framework (1.2.4) project with PlayMorphia that has two different database
I am using Play Framework 2.0 with Scala. So I have an action that
I want to try out Joda Time with Play Framework 2.0. So I have
I have a Compact Framework 3.5 application that is responsible for scanning barcodes. There
Lets say I have an already functioning Play 2.0 framework based application in Scala
I'm using the Play! framework and I have a model (an Entity) that has
I use the Play Framework 2.0 (2.0.3). I have a Java project and want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.