项目为delta。
我已经在Mac上安装了sbt-1.2.8。但是,我无法使用“ build / sbt compile”来编译该项目。输入命令后,错误如下:
java.lang.NoClassDefFoundError: scala/reflect/internal/Trees
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at xsbt.boot.Pre$.xsbt$boot$Pre$$classMissing$1(Pre.scala:66)
at xsbt.boot.Pre$$anonfun$getMissing$1.apply(Pre.scala:67)
at scala.collection.TraversableLike$$anonfun$filter$1.apply(TraversableLike.scala:264)
at scala.collection.immutable.List.foreach(List.scala:318)
at org.apache.ivy.core.RelativeUrlResolver.filter(RelativeUrlResolver.java:263)
at scala.collection.AbstractTraversable.filter(Traversable.scala:105)
at xsbt.boot.Pre$.getMissing$d83f809$3a8a6f87(Pre.scala:67)
at xsbt.boot.Launch.checkLoader$2accd70c(Launch.scala:185)
at xsbt.boot.Launch.xsbt$boot$Launch$$provider$1(Launch.scala:249)
at xsbt.boot.Launch$$anonfun$xsbt$boot$Launch$$getScalaProvider0$2.apply(Launch.scala:252)
at xsbt.boot.Launch$$anonfun$xsbt$boot$Launch$$getScalaProvider0$2.apply(Launch.scala:251)
at scala.Option.flatMap(Option.scala:170)
at xsbt.boot.Launch.xsbt$boot$Launch$$getScalaProvider0(Launch.scala:251)
at xsbt.boot.Launch$$anon$3.call(Launch.scala:240)
at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:45)
at xsbt.boot.Locks$.apply0(Locks.scala:31)
at xsbt.boot.Locks$.apply(Locks.scala:28)
at xsbt.boot.Launch.locked(Launch.scala:238)
at xsbt.boot.Launch.getScalaProvider(Launch.scala:240)
at xsbt.boot.Launch$$anonfun$1.apply(Launch.scala:141)
at xsbt.boot.Cache.newEntry(Cache.scala:16)
at xsbt.boot.Cache.apply(Cache.scala:11)
at xsbt.boot.Launch.getScala(Launch.scala:144)
at xsbt.boot.Launch.getScala(Launch.scala:143)
at xsbt.boot.Launch.xsbt$boot$Launch$$getAppProvider0(Launch.scala:219)
at xsbt.boot.Launch$$anon$2.call(Launch.scala:196)
at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:93)
at xsbt.boot.Locks$GlobalLock.xsbt$boot$Locks$GlobalLock$$withChannelRetries$1(Locks.scala:78)
at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:97)
at xsbt.boot.Using$.withResource(Using.scala:10)
at xsbt.boot.Using$.apply(Using.scala:9)
at xsbt.boot.Locks$GlobalLock.ignoringDeadlockAvoided(Locks.scala:58)
at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:48)
at xsbt.boot.Locks$.apply0(Locks.scala:31)
at xsbt.boot.Locks$.apply(Locks.scala:28)
at xsbt.boot.Launch.locked(Launch.scala:238)
at xsbt.boot.Launch.app(Launch.scala:147)
at xsbt.boot.Launch.app(Launch.scala:145)
at xsbt.boot.Launch$.run(Launch.scala:102)
at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:35)
at xsbt.boot.Launch$.launch(Launch.scala:117)
at xsbt.boot.Launch$.apply(Launch.scala:18)
at xsbt.boot.Boot$.runImpl(Boot.scala:41)
at xsbt.boot.Boot$.main(Boot.scala:17)
at xsbt.boot.Boot.main(Boot.scala)
Caused by: java.lang.ClassNotFoundException: scala.reflect.internal.Trees
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 69 more
Error during sbt execution: java.lang.NoClassDefFoundError: scala/reflect/internal/Trees
我是sbt工具的新手。我试图在project / build.properties中更改sbt版本,但是没有用。有人可以帮我解决这个问题吗?
答案 0 :(得分:0)
我可以在Mac上使用sbt版本0.13.18编译项目。