我正在运行Play 文档中描述的 Play 应用程序。
java -Dconfig.file='/home/me/production.conf' -jar target/scala-2.11/myplayapp.jar
Run Code Online (Sandbox Code Playgroud)
虽然我的库中包含果汁,但我收到以下错误:
libraryDependencies += guice
Run Code Online (Sandbox Code Playgroud)
我适当的帮助。
java.lang.RuntimeException: No application loader is configured. Please configure an application loader either using the play.application.loader configuration property, or by depending on a module that configures one. You can add the Guice support module by adding "libraryDependencies += guice" to your build.sbt.
at scala.sys.package$.error(package.scala:27)
Run Code Online (Sandbox Code Playgroud)