【问题标题】:The system cannot find the file C:\play\bin\..\conf\sbtconfig.txt系统找不到文件 C:\play\bin\..\conf\sbtconfig.txt
【发布时间】:2017-03-27 05:08:54
【问题描述】:
ACTIVATOR_HOME=C:\play
The system cannot find the file `C:\play\bin\..\conf\sbtconfig.txt.
'findstr' is not recognized as an internal or external command, operable program or batch file.
The syntax of the command is incorrect.

我在安装播放框架时遇到了这个问题。

我安装了互联网上的一个教程所引用的 sbt 和 Scala,但徒劳无功。

我的 Java JDK 工作正常,sbtconfig.txt 文件不在上述文件指向的播放箱中。

谁能帮帮我?

【问题讨论】:

  • "sorry for English" 这完全不是问题,问题是标点符号...喘口气!

标签: java scala playframework-2.0 sbt


【解决方案1】:

如果您不提供 sbtconfig.txt,则安装程序会发出警告,但不会停止。即使在那条消息之后,我也成功安装了 play2。

所以请检查 SBT_HOME 和 ACTIVATOR_HOME 是否配置正确。但是您遇到了一些其他错误,例如找不到“findstr”。因此,尝试从创建命令 shell 和双击批处理文件。希望能解决问题。

【讨论】:

  • 如果这不起作用,您可以删除 activator.bat 的这一部分
  • rem 检查正在使用的 Java 版本以确定用于 /f "tokens=3" %%g in ('java -version 2^>^&1 ^| findstr /i "version"') 做(设置 JAVA_VERSION=%%g)
  • 另外,如果没有找到 findstr 命令,您可以尝试将 C:\WINDOWS\system32 添加到 PATH 变量中。
  • @Prebir Ghosh **谢谢 ** 但它对我不起作用 'ACTIVATOR_HOME=c:\play\activator-dist-1.3.12 系统找不到文件 c:\play\activator- dist-1.3.12\bin。 'findstr' 不是内部或外部命令、可运行程序或批处理文件。该命令的语法不正确。当我像你说的那样删除时出现这个新错误
  • 您是否尝试将“C:\WINDOWS\system32”添加到 PATH 环境变量中? @阿西夫卡西姆
猜你喜欢
  • 1970-01-01
  • 2015-11-18
  • 1970-01-01
  • 1970-01-01
  • 2014-04-01
  • 2012-05-28
  • 1970-01-01
  • 2015-01-07
相关资源
最近更新 更多