Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

play framework bat windows java process

I am having troubles launching a standalone play application as a Java process on Windows. I use the "play dist" command in order to generate a zip file containing all the jars that are necessary for the application to run. The zip file also contains the "start" file that contains a script that is supposed to launch the application (works fine on Linux server).

I found the sbtgoodies plugin with the "play dist-unzip" command https://github.com/typesafehub/play-plugins/tree/master/sbtgoodies. It works fine but I always get a unix script "start". How can I get a windows script "start.bat"?

like image 239
user431015 Avatar asked Jun 05 '12 09:06

user431015


1 Answers

The start.bat with the following command line should work :

java %1 -cp "./lib/*;" play.core.server.NettyServer .

Note the ";" after lib/* to prevent Windows preprocessor from expanding the wildcard

like image 147
Axelle Ziegler Avatar answered Oct 07 '22 16:10

Axelle Ziegler