警告消息 运行 播放 - activator eclipse
Warning message running Play - activator eclipse
我从这里下载了播放框架:
https://www.playframework.com/download
然后我选择了离线分发下载。
我设置了路径环境变量并添加了这个:
C:\Framework\activator-dist-1.3.10\bin
在尝试创建一个新项目时,我在命令“activator new”中编写了它,并且成功了。
比我写的 activator 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.
您需要添加 sbteclipse
才能生效。在您的 project/plugins.sbt
文件中,添加以下内容:
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0")
然后先编译您的应用程序(compile
在激活器中 shell)。然后就可以在激活器中使用eclipse
命令shell.
更多信息:https://www.playframework.com/documentation/2.5.x/IDE#Eclipse
我从这里下载了播放框架:
https://www.playframework.com/download
然后我选择了离线分发下载。
我设置了路径环境变量并添加了这个:
C:\Framework\activator-dist-1.3.10\bin
在尝试创建一个新项目时,我在命令“activator new”中编写了它,并且成功了。 比我写的 activator 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.
您需要添加 sbteclipse
才能生效。在您的 project/plugins.sbt
文件中,添加以下内容:
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0")
然后先编译您的应用程序(compile
在激活器中 shell)。然后就可以在激活器中使用eclipse
命令shell.
更多信息:https://www.playframework.com/documentation/2.5.x/IDE#Eclipse