运行 Play 2.5.x 的警告消息 [英] Warning message running Play 2.5.x

查看:23
本文介绍了运行 Play 2.5.x 的警告消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我使用 activator run 运行我的应用程序时,我都会收到以下警告:

Whenever I run my application with activator run I get the following warning:

"The system cannot find the file BIN_DIRECTORY..confsbtconfig.txt"

这条消息是什么意思?我应该创建这个文件吗?该应用程序运行良好.

What does this message mean? Should I create this file? The application works fine.

推荐答案

@ps0604 首先,您应该按照 James Higgins-Thomas 的 2nd answer 并编辑 C:yourpath oactivator-dist-1.3.10inactivator.bat 文件并添加结束 % 符号

@ps0604 Firstly, you should follow James Higgins-Thomas's 2nd answer and edit the C:yourpath oactivator-dist-1.3.10inactivator.bat file and add a closing % symbol

set SBT_HOME=%BIN_DIRECTORY%

其次需要将Scala目录C:Program Filessbtconf中的sbtconfig.txt复制到C:yourpath oactivator-dist-1.3.10conf.谷歌帖子是 2013 年的 - 所以我认为它有点过时

Secondly, the sbtconfig.txt found in the Scala directory C:Program Filessbtconf needs to be copied to C:yourpath oactivator-dist-1.3.10conf. The google posting is from 2013 - so I think it's a bit dated

请注意,我认为 SBT_HOME 变量指向 Activator 中的目录很奇怪.最好有

Mind you, I think that it's odd that the SBT_HOME variable would point to a directory in Activator. It might be better to have

set SBT_HOME="c:Program Filessbt"

(我知道它是硬编码的 - 不是最好的)

(I know it's hard coded - not the best)

然后修复

set FN="%SBT_HOME%confsbtconfig.txt"

这篇关于运行 Play 2.5.x 的警告消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆