How to run a Java application with Play framework at the prompt?

Asked

Viewed 153 times

2

I have a large system developed in Java using the Play, but this system was developed in the Linux, and now I need to spin it in Windows. There is a script to compile on Linux (run.sh.template).


I need to know how to make one script equivalent to Windows so that it can rotate in the prompt of the system.

Script for Linux run.sh

#!/bin/bash

# Sample script to run the Playball server in the development environemnt

BASEDIR=$(dirname $0)

source $BASEDIR/setenv.sh
play debug -Dconfig.file=conf/local.conf -Dlogger.file=conf/logback-dev.xml

Script setenv.sh

#!/bin/bash

export _JAVA_OPTIONS="-Xss4m -Xmx756m"
export JAVA_HOME="/data/dev/sdk/jdk1.7.0_67"
export PLAY_HOME="/data/dev/sdk/play/play-2.0.8"
export PATH="$JAVA_HOME/bin:$PLAY_HOME:$PATH"
  • Add the script code to the question, please.

  • It is also necessary to add the code of setenv.sh.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.