scala 解释器错误
我确实
sudo sbaz update
sudo sbaz install scalacl
scala
给了我这个错误,
Exception in thread "main" java.lang.NoClassDefFoundError: scala/collection/LinearSeqOptimized
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getConstructor0(Class.java:2699)
at java.lang.Class.getConstructor(Class.java:1657)
at scala.tools.nsc.plugins.Plugin$.instantiate(Plugin.scala:149)
at scala.tools.nsc.plugins.Plugins$$anonfun$loadRoughPluginsList$1.apply(Plugins.scala:29)
at scala.tools.nsc.plugins.Plugins$$anonfun$loadRoughPluginsList$1.apply(Plugins.scala:28)
at scala.List.map(List.scala:812)
at scala.tools.nsc.plugins.Plugins$class.loadRoughPluginsList(Plugins.scala:28)
at scala.tools.nsc.Global.loadRoughPluginsList(Global.scala:34)
我该如何解决这个问题?我可以进行清理吗,因为我以前没有出现过此错误?
I did
sudo sbaz update
sudo sbaz install scalacl
scala
gave me this error
Exception in thread "main" java.lang.NoClassDefFoundError: scala/collection/LinearSeqOptimized
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getConstructor0(Class.java:2699)
at java.lang.Class.getConstructor(Class.java:1657)
at scala.tools.nsc.plugins.Plugin$.instantiate(Plugin.scala:149)
at scala.tools.nsc.plugins.Plugins$anonfun$loadRoughPluginsList$1.apply(Plugins.scala:29)
at scala.tools.nsc.plugins.Plugins$anonfun$loadRoughPluginsList$1.apply(Plugins.scala:28)
at scala.List.map(List.scala:812)
at scala.tools.nsc.plugins.Plugins$class.loadRoughPluginsList(Plugins.scala:28)
at scala.tools.nsc.Global.loadRoughPluginsList(Global.scala:34)
How do I fix this? Can I do a cleanup, because I didn't have this error before?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你使用什么 Scala 版本?
Scalacl
仅与 2.8.x 兼容(错误消息中的LinearSeqOptimized
自 2.8 起也已引入)What Scala version do you use?
Scalacl
is only compatible with 2.8.x (LinearSeqOptimized
from your error message has also been introduced since 2.8)