[英]Play Framework java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory when running tests in IntelliJ
When i generated the play framework example application (play-java) with activator and imported into IntelliJ everything worked fine and I can run up the application. 当我使用激活程序生成播放框架示例应用程序(play-java)并将其导入IntelliJ时,一切工作正常,我可以运行该应用程序。
I can run the tests on the command line and they all work. 我可以在命令行上运行测试,它们都可以工作。
However when I try to run them from the IDE i get the following stack: 但是,当我尝试从IDE运行它们时,得到以下堆栈:
java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
at play.api.Logger$.<init>(Logger.scala:182)
at play.api.Logger$.<clinit>(Logger.scala)
at play.api.Play$.<init>(Play.scala:35)
at play.api.Play$.<clinit>(Play.scala)
at views.html.play20.welcome$.apply(welcome.template.scala:18)
at views.html.index$.apply(index.template.scala:33)
...
I'm pretty sure its something simple, but I'm just moving over to Play/IntelliJ from C# so it's not immediately obvious to me!! 我很确定这很简单,但是我只是从C#转到Play / IntelliJ,所以对我来说这不是立即显而易见的!
Thanks, 谢谢,
Ben 本
显然,Jar: slf4j.jar
由于某种原因未加载。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.