Scala.runtime In Compiler Mirror Not Found 怎么解决
来源:互联网 发布:聚宝盆计划软件下载 编辑:程序博客网 时间:2024/05/22 05:06
一句话总结
可能是依赖的jar文件出错
用 -Ylog-classpath 参数打印依赖的jar
Building with 2.10 I get the following error. It's a Maven build but I see people getting this error with SBT, so I don't think it's a Maven problem. I've tried including dependencies for scala-reflect and scala-library, Maven options -e and -X, scalac options -g:vars -verbose -explaintypes. Nothing gives me more clues about the zip file that failed to open. What is a compiler mirror? [INFO] Compiling 204 Scala sources and 9 Java sources to /Users/garystruthers/git/incubator-spark/core/target/scala-2.10/classes...[ERROR] error while loading , error in opening zip file[INFO] ------------------------------------------------------------------------[INFO] Reactor Summary:[INFO] [INFO] Spark Project Parent POM .......................... SUCCESS [1.120s][INFO] Spark Project Core ................................ FAILURE [15.817s]…..[ERROR] Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.1.0:compile (scala-compile-first) on project spark-core: wrap: scala.reflect.internal.MissingRequirementError: object scala.runtime in compiler mirror not found.
解决方案:
Replies for : Scala.runtime In Compiler Mirror Not FoundThis error is very misleading, it actually has nothing to do with scala.runtime or the compiler mirror: this is the error you get when you have a faulty JAR file on your classpath.Sadly, there is no way from the error (even with -Ydebug) to tell exactly which file. You can run scala with -Ylog-classpath, it will output a lot of classpath stuff, including the exact classpath used (look for "[init] [search path for class files:"). Then I guess you will have to go through them to check if they are valid or not.I recently tried to improve that (SI-5463), at least to get a clear error message, but couldn't find a satisfyingly clean way to do this...I hope this helps,-- Antoine- show quoted text -- show quoted text - -- You received this message because you are subscribed to the Google Groups "scala-user" group.To unsubscribe from this group and stop receiving emails from it, send an email to scala-user+...@googlegroups.com.For more options, visit https://groups.google.com/groups/opt_out.
0 0
- Scala.runtime In Compiler Mirror Not Found 怎么解决
- Failed to initialize compiler: object scala.runtime in compiler mirror not found
- compiler mirror not found
- 解决Error:java: System Java Compiler was not found in classpath
- Compiler tools not found
- 解决:configure:error: no acceptable C compiler found in......
- configure: error: no acceptable C compiler found in $PATH解决
- 解决“The Apache Portable Runtime which allows optimal performance in production environments was not found on the java.library.pat
- 解决 Local gulp not found in
- Idea Error:java: System Java Compiler was not found in classpath:
- 怎么解决/bin/sh: arm-linux-gcc: not found make
- mybatis错误: Invalid bound statement (not found) 怎么解决
- runtime error怎么解决
- CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found...问题的解决
- checking for C compiler ... not found
- nginx c compiler cc is not found
- Webpack错误解决(一):ERROR in Entry module not found
- Webpack错误解决(一):ERROR in Entry module not found
- ListView 设置点击项目背景色
- 二叉查找树的简单创建和3种遍历
- tomcat服务最好部署在一个拥有最小权限的用户下
- Java反射入门
- android cmd
- Scala.runtime In Compiler Mirror Not Found 怎么解决
- 22. Generate Parentheses
- Linux _条件变量
- Linux_ pthread 线程的取消
- Linux _pthread 属性的控制
- js构建ui的统一异常处理方案(二)
- vc 在edit控件中动态插入数据滚动显示
- Maven3入门
- protobuf的nested message嵌套消息。有时会出现序列话再反序列化后,嵌套消息的指却没有了