我从这里下载了播放框架:
https://www.playframework.com/download
我选择了离线发布下载。
我设置了路径环境变量并添加了这个:
C:\框架\活化剂 - DIST-1.3.10 \ bin中
在尝试创建一个我在cmd“activator new”中编写的新项目时它起作用了。 比我写的激活器eclipse但我得到了这个错误:
C:\Users\***\Desktop\***\FirstPlayProject>activator eclipse
ACTIVATOR_HOME=C:\Framework\activator-dist-1.3.10
The system cannot find the file BIN_DIRECTORY\..\conf\sbtconfig.txt.
[info] Loading project definition from C:\Users\***\Desktop\·δ≡σ·\FirstPlayPro
ject\project
[info] Updating {file:/C:/Users/***/Desktop/%D7%AA%D7%9B%D7%A0%D7%95%D7%AA/Fir
stPlayProject/project/}firstplayproject-build...
[info] Resolving com.typesafe.akka#akka-persistence-experimental_2.10;2.3.11 ...
[info] Resolving com.fasterxml.jackson.datatype#jackson-datatype-jsr310;2.5.4 ..
[info] Resolving org.scala-sbt.ivy#ivy;2.3.0-sbt-2cc8d2761242b072cedb0a04cb39435
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[info] Set current project to FirstPlayProject (in build file:/C:/Users/***/De
sktop/%D7%AA%D7%9B%D7%A0%D7%95%D7%AA/FirstPlayProject/)
[error] Not a valid command: eclipse (similar: help, alias)
[error] Not a valid project ID: eclipse
[error] Expected ':' (if selecting a configuration)
[error] Not a valid key: eclipse (similar: deliver, licenses, clean)
[error] eclipse
[error]
也许是因为这个错误:The system cannot find the file BIN_DIRECTORY\..\conf\sbtconfig.txt.
感谢advence并抱歉我的英语。 :)
答案 0 :(得分:1)
您需要添加sbteclipse
才能正常工作。在project/plugins.sbt
文件中,添加以下内容:
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0")
然后首先编译你的应用程序(激活器shell中的compile
)。然后,您可以在激活器shell中使用eclipse
命令。
更多信息:https://www.playframework.com/documentation/2.5.x/IDE#Eclipse