Scala Play无法工作-Could not find configuration file …/framework/sbt/sbt.boot.properties

来源:互联网 发布:王者荣耀代打接单软件 编辑:程序博客网 时间:2024/06/07 05:18

If you try to run Scala play on Windows Git Bash (using msysgit) then you may get the following error

Could not find configuration file ../framework/sbt/sbt.boot.properties

In order to fix this, edit the file

$PLAY_HOME/framework/build

where $PLAY_HOME is the directoy where you have installed Play and change the last line…

from

java ${DEBUG_PARAM} -Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=384M ${JAVA_OPTS} -Dfile.encoding=UTF-8 -Dplay.version="${PLAY_VERSION}" -Dsbt.ivy.home=`dirname $0`/../repository -Dplay.home=`dirname $0` -Dsbt.boot.properties=`dirname $0`/sbt/sbt.boot.properties -jar `dirname $0`/sbt/sbt-launch.jar "$@"

to

java ${DEBUG_PARAM} -Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=384M ${JAVA_OPTS} -Dfile.encoding=UTF-8 -Dplay.version="${PLAY_VERSION}" -Dsbt.ivy.home=`dirname $0`/../repository -Dplay.home=`dirname $0` -Dsbt.boot.properties=sbt.boot.properties -jar `dirname $0`/sbt/sbt-launch.jar "$@"

NEXT edit the seoond from last line in the file

$PLAY_HOME/framework/play

from

"$JAVA" -Dsbt.ivy.home=$dir/repository -Dplay.home=$dir/framework -Dsbt.boot.properties=$dir/framework/sbt/play.boot.properties -jar $dir/framework/sbt/sbt-launch.jar "$@"

to

"$JAVA" -Dsbt.ivy.home=$dir/repository -Dplay.home=$dir/framework -Dsbt.boot.properties=play.boot.properties -jar $dir/framework/sbt/sbt-launch.jar "$@"

Note the differences are highlighted in bold. I can confirm that this works with Play 2.1.2-RC1 on Windows 7 64bit

原创粉丝点击