首页 新闻 搜索 专区 学院

idea运行scala程序是出错,请大神帮忙看看,谢谢

0
悬赏园豆:10 [已关闭问题] 关闭于 2016-06-15 14:13

Error:scalac: error while loading <root>, invalid CEN header (bad signature)
Error:scalac: Error: object scala.runtime in compiler mirror not found.
scala.reflect.internal.MissingRequirementError: object scala.runtime in compiler mirror not found.

    at scala.reflect.internal.MissingRequirementError$.signal(MissingRequirementError.scala:16)

    at scala.reflect.internal.MissingRequirementError$.notFound(MissingRequirementError.scala:17)

    at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:48)

    at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:40)

    at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:61)

    at scala.reflect.internal.Mirrors$RootsBase.getPackage(Mirrors.scala:172)

    at scala.reflect.internal.Mirrors$RootsBase.getRequiredPackage(Mirrors.scala:175)

    at scala.reflect.internal.Definitions$DefinitionsClass.RuntimePackage$lzycompute(Definitions.scala:181)

    at scala.reflect.internal.Definitions$DefinitionsClass.RuntimePackage(Definitions.scala:181)

    at scala.reflect.internal.Definitions$DefinitionsClass.RuntimePackageClass$lzycompute(Definitions.scala:182)

    at scala.reflect.internal.Definitions$DefinitionsClass.RuntimePackageClass(Definitions.scala:182)

    at scala.reflect.internal.Definitions$DefinitionsClass.AnnotationDefaultAttr$lzycompute(Definitions.scala:1015)

    at scala.reflect.internal.Definitions$DefinitionsClass.AnnotationDefaultAttr(Definitions.scala:1014)

    at scala.reflect.internal.Definitions$DefinitionsClass.syntheticCoreClasses$lzycompute(Definitions.scala:1144)

    at scala.reflect.internal.Definitions$DefinitionsClass.syntheticCoreClasses(Definitions.scala:1143)

    at scala.reflect.internal.Definitions$DefinitionsClass.symbolsNotPresentInBytecode$lzycompute(Definitions.scala:1187)

    at scala.reflect.internal.Definitions$DefinitionsClass.symbolsNotPresentInBytecode(Definitions.scala:1187)

    at scala.reflect.internal.Definitions$DefinitionsClass.init(Definitions.scala:1252)

    at scala.tools.nsc.Global$Run.<init>(Global.scala:1289)

    at xsbt.CachedCompiler0$$anon$2.<init>(CompilerInterface.scala:105)

    at xsbt.CachedCompiler0.run(CompilerInterface.scala:105)

    at xsbt.CachedCompiler0.run(CompilerInterface.scala:94)

    at xsbt.CompilerInterface.run(CompilerInterface.scala:22)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:606)

    at sbt.compiler.AnalyzingCompiler.call(AnalyzingCompiler.scala:101)

    at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:47)

    at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:41)

    at org.jetbrains.jps.incremental.scala.local.IdeaIncrementalCompiler.compile(IdeaIncrementalCompiler.scala:29)

    at org.jetbrains.jps.incremental.scala.local.LocalServer.compile(LocalServer.scala:26)

    at org.jetbrains.jps.incremental.scala.remote.Main$.make(Main.scala:67)

    at org.jetbrains.jps.incremental.scala.remote.Main$.nailMain(Main.scala:24)

    at org.jetbrains.jps.incremental.scala.remote.Main.nailMain(Main.scala)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:606)

    at com.martiansoftware.nailgun.NGSession.run(NGSession.java:319)

冰果洁儿的主页 冰果洁儿 | 菜鸟二级 | 园豆:206
提问于:2016-06-15 10:50
< >
分享
所有回答(4)
0

兄弟我和你遇到同样的问题,怎么解决的?

flsh0730 | 园豆:202 (菜鸟二级) | 2016-08-04 15:23
0

楼主您好,请问您的问题解决了么?我也出现了同样的问题,望回复,谢谢

醉里看花 | 园豆:202 (菜鸟二级) | 2016-12-14 09:51
0

楼主 ,请问最后是怎么解决的呢?

Record-own | 园豆:202 (菜鸟二级) | 2017-06-19 14:27
0

我也遇到了相同的问题

郭小白 | 园豆:202 (菜鸟二级) | 2019-04-15 12:57

删除缓存文件,我的项目是sbt项目,我删除.vy2之后,重新启动idea,然后从新下载载入缓存,之后就可以了

支持(0) 反对(0) 郭小白 | 园豆:202 (菜鸟二级) | 2019-04-15 15:04
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册