我的Play项目可以使用activator run
命令正常运行。但是当我使用activator start
命令时,打包后应用程序开始意外停止并出现以下错误:
.
.
.
[info] Resolving org.scala-lang#scala-reflect;2.11.0 ...
[info] Resolving jline#jline;2.11 ...
[info] Done updating.
[info] Wrote E:\workspace\CustomerClub\target\scala-2.11\customerclub_2.11-1.0-SNAPSHOT.pom
[info] Compiling 2 Scala sources and 50 Java sources to E:\workspace\CustomerClub\target\scala-2.11\classes...
[info] Main Scala API documentation to E:\workspace\CustomerClub\target\scala-2.11\api...
model contains 93 documentable templates
[info] Main Scala API documentation successful.
[info] Packaging E:\workspace\CustomerClub\target\scala-2.11\customerclub_2.11-1.0-SNAPSHOT-javadoc.jar ...
[info] Done packaging.
[warn] Note: Some input files use unchecked or unsafe operations.
[warn] Note: Recompile with -Xlint:unchecked for details.
[info] Packaging E:\workspace\CustomerClub\target\customerclub-1.0-SNAPSHOT-assets.jar ...
[info] Done packaging.
[info] Packaging E:\workspace\CustomerClub\target\scala-2.11\customerclub_2.11-1.0-SNAPSHOT.jar ...
[info] Done packaging.
(Starting server. Type Ctrl+D to exit logs, the server will remain in background)
'"E:\java\jdk1.8.0_05\bin\java.exe" -version 2>&1' is not recognized as an internal or external command,
operable program or batch file.
The batch file cannot be found.
我认为它来自我的JDK或JRE,但执行此命令的结果是:
E:\workspace\CustomerClub>"E:\java\jdk1.8.0_05\bin\java.exe" -version 2>&1
java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)
设置了JAVA_HOME
和JDK_HOME
等环境变量。
我正在使用带有Windows 7 64位版本的Java 8