IDEA Error:java: Compilation failed: internal java compiler error
在Idea中编译时出现这个错误:Error:java: Compilation failed: internal java compiler error。即使再小的错误,也不可以放过,学习就是一个积累的过程。
1
2
3
4
5
6
|
Information:Using javac 1.7.0_79 to compile java sources Information:java: javacTask: 源发行版 1.6 需要目标发行版 1.6 Information:java: Errors occurred while compiling module 'MyThrift' Information:Module "MyThrift" was fully rebuilt due to project configuration/dependencies changes Information:2015/8/27 10:43 - Compilation completed with 1 error and 0 warnings in 4s 240ms Error:java: Compilation failed: internal java compiler error |
解决办法很简单:File-->Setting...-->Build,Execution,Deployment-->Compiler-->Java Compiler 设置相应Module的target bytecode version的合适版本(跟你jkd版本一致),这里我改成1.7版本的。