java.lang.NoClassDefFoundError:sbt / compiler / IC $ Result [英] java.lang.NoClassDefFoundError: sbt/compiler/IC$Result

查看:119
本文介绍了java.lang.NoClassDefFoundError:sbt / compiler / IC $ Result的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

希望有人可以帮助我摆脱这个问题。

Hope someone can help me to get rid of this issue.

当我添加 addSbtPlugin( com.typesafe.sbt% sbt-play -ebean% 1.0.0)到plugins.sbt,然后我得到java.lang.NoClassDefFoundError:sbt / compiler / IC $ Result

When I add addSbtPlugin("com.typesafe.sbt" % "sbt-play-ebean" % "1.0.0") to plugins.sbt then I get java.lang.NoClassDefFoundError: sbt/compiler/IC$Result

plugins.sbt:

logLevel := Level.Warn

resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"

addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.4.3")

addSbtPlugin("com.typesafe.sbt" % "sbt-play-ebean" % "1.0.0")

build.sbt:

name := "HelloWorld"

version := "1.0"

lazy val `helloworld` = (project in file(".")).enablePlugins(PlayScala)

scalaVersion := "2.11.7"

libraryDependencies ++= Seq( jdbc , cache , ws, "org.hibernate" % "hibernate-entitymanager" % "4.3.9.Final" )

unmanagedResourceDirectories in Test <+=  baseDirectory ( _ /"target/web/public/test" )  

我得到了一个令人愉快的例外:


错误:导入SBT项目时出错:...在
sbt .MainLoop $$ anonfun $ runWithNewLog $ 1.apply(MainLoop.scala:71)为
sbt.MainLoop $$ anonfun $ runWithNewLog $ 1.apply(MainLoop.scala:66)为
sbt.Using.apply (使用.scala:25)为
sbt.MainLoop $ .runWithNewLog(MainLoop.scala:66)为
sbt.MainLoop $ .runAndClearLast(MainLoop.scala:49)为
sbt。
sbt的MainLoop $ .runLoggedLoop(MainLoop.scala:33)在
sbt的MainLoop $ .runLogged(MainLoop.scala:25)在$ b的StandardMain $ .runManaged(Main.scala:57) $ b sbt.xMain.run(Main.scala:29)在
xsbt.boot.Launch $$ anonfun $ run $ 1.apply(Launch.scala:109)在
xsbt.boot.Launch $ .withContextLoader(Launch.scala:129)在
xsbt.boot.Launch $ .run(Launch.scala:109)在
xsbt.boot.Launch $$ anonfun $ apply $ 1.apply(Launch。 scala:36)at
xsbt.boot.Launch $ .launch(Launch.scala:117)at
xsbt.boot.Launch $ .apply(Launch.scala:19)at
xsbt .boot.Boot $ .runImpl(Boot.scala:44)在
xsbt.boot.Boot $ .main(Boot.scala:20)在
xsbt.boot.Boot.main(Boot.scala) )[错误]
java.lang.NoClassDefFoundError:sbt / compiler / IC $ Result [错误]对完整日志使用
'last'。

Error:Error while importing SBT project: ... at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:71) at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:66) at sbt.Using.apply(Using.scala:25) at sbt.MainLoop$.runWithNewLog(MainLoop.scala:66) at sbt.MainLoop$.runAndClearLast(MainLoop.scala:49) at sbt.MainLoop$.runLoggedLoop(MainLoop.scala:33) at sbt.MainLoop$.runLogged(MainLoop.scala:25) at sbt.StandardMain$.runManaged(Main.scala:57) at sbt.xMain.run(Main.scala:29) at xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:109) at xsbt.boot.Launch$.withContextLoader(Launch.scala:129) at xsbt.boot.Launch$.run(Launch.scala:109) at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:36) at xsbt.boot.Launch$.launch(Launch.scala:117) at xsbt.boot.Launch$.apply(Launch.scala:19) at xsbt.boot.Boot$.runImpl(Boot.scala:44) at xsbt.boot.Boot$.main(Boot.scala:20) at xsbt.boot.Boot.main(Boot.scala) [error] java.lang.NoClassDefFoundError: sbt/compiler/IC$Result [error] Use 'last' for the full log.

查看完整的登录信息
C:\Users\Username.IntelliJIdea14\system\log\sbt.last.log

See complete log in C:\Users\Username.IntelliJIdea14\system\log\sbt.last.log

有人可以帮忙吗?

推荐答案

解决方案:
我有将 SBT版本更新为0.13.9 。这样就解决了上述问题。

Solution: I had to update the SBT Version to 0.13.9. That solved the above mentioned problem.

这篇关于java.lang.NoClassDefFoundError:sbt / compiler / IC $ Result的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆