Compilation failed: internal java compiler error

博客引用处(以下内容在原有博客基础上进行补充或更改,谢谢这些大牛的博客指导):
Compilation failed: internal java compiler error

在Idea中编译时出现这个错误:Error:java: Compilation failed: internal java compiler error。

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版本/ 7的。 
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/fragrant_no1/article/details/87783434
今日推荐