使用xUbuntu VM; 运行sbt命令返回堆栈跟踪:
java.lang.NoClassDefFoundError: sbt/cross/CrossVersionUtil$
at sbt.BuildPaths$.binarySbtVersion(BuildPaths.scala:60)
at sbt.BuildPaths$.getGlobalBase(BuildPaths.scala:20)
at sbt.Load$.defaultLoad(Load.scala:30)
at sbt.BuiltinCommands$.doLoadProject(Main.scala:481)
...
java version "1.8.0_66"
Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)
Scala code runner version 2.11.7
sbt: 0.13.9
答案 0 :(得分:0)
对我有用的解决方案是降级sbt: 从0.13.9 至0.13.8
使用了命令:
curl -LOk http://dl.bintray.com/sbt/debian/sbt-0.13.8.deb
sudo dpkg -i sbt-0.13.8.deb
rm sbt-0.13.8.deb