Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>This worked for me on Windows 7:</p> <ol> <li>Create folder C:\my_app</li> <li><p>Go to your Play! app folder in command line and type</p> <p><code>play dist</code></p></li> <li>Copy generated "something-SNAPSHOT" folder to C:\my_app</li> <li>Download <a href="http://sourceforge.net/projects/yajsw/">YAJSW</a> and extract to C:\my_app</li> <li><p>In C:\my_app\something-SNAPSHOT\ make a new file start.bat and fill it with command like this:</p> <p><code>java -cp "C:\my_app\something-SNAPSHOT\lib\*" play.core.server.NettyServer</code></p></li> <li><p>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. </p></li> <li><p>Now using command prompt go to C:\my_app\yajsw\bat and type</p> <p><code>genConfig.bat &lt; PID from previous step ></code></p></li> <li><p>You generated C:\my_app\yajsw\conf\wrapper.conf. Edit this file and change these params like so:</p> <p><code>wrapper.ntservice.name=My App Name<br/> wrapper.ntservice.displayname=My App Name</code> <br/><br/>Save file.</p></li> <li><p>Terminate the <strong>start.bat</strong> script you started in 6. then, in C:\my_app\yajsw\bat launch </p> <p><code>runConsole.bat</code> <br/><br/>If app starts, do a <code>Ctrl c</code> (and answer <strong>y</strong>) to terminate the batch file and proceed to next step.</p></li> <li><p>To install service launch (<em>Run as administrator</em>)</p> <p><code>installService.bat</code></p></li> <li><p>To start service launch</p> <p><code>startService.bat</code></p></li> </ol> <p>Now you can see your "My App Name" service in Windows services. To stop service you can use <code>stopService.bat</code>. To uninstall it <code>uninstallService.bat</code>.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload