首页 > 其他 > 详细

解决Scala Play框架在Git Bash运行的异常:Could not find configuration file ../framework/sbt/sbt.boot.properties

时间:2014-03-18 19:54:51      阅读:819      评论:0      收藏:0      [点我收藏+]

Git Bash+ConEmu可以模拟Linux强大的命令行。不过在结合Scala和Play时,需要注意如下事项:

1. Scala的安装在64位操作系统下,默认会放在“C:\Program Files (x86)\”。更改此目录使其安装在没有空格没有括号的目录下。

2. chmod a+x scala,使此脚本具有执行权限。

3. 安装完Play2后,因为路径原因会出现“Could not find configuration file ../framework/sbt/sbt.boot.properties”的问题,此时更改两个文件:

  • $PLAY_HOME\framework\build:将-Dsbt.boot.properties=`dirname $0`/sbt/sbt.boot.properties改成-Dsbt.boot.properties=sbt.boot.properties 
  • $PLAY_HOME\play:将 -Dsbt.boot.properties=$dir/framework/sbt/play.boot.properties改成-Dsbt.boot.properties=play.boot.properties

 

这样就可在Git Bash里使用scala+paly的组合了

 

本文完

解决Scala Play框架在Git Bash运行的异常:Could not find configuration file ../framework/sbt/sbt.boot.properties,布布扣,bubuko.com

解决Scala Play框架在Git Bash运行的异常:Could not find configuration file ../framework/sbt/sbt.boot.properties

原文:http://www.cnblogs.com/techyc/p/3608257.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!