![cover](https://img-blog.csdnimg.cn/direct/1d1f9c8248b54eeeb73fa8e6e29f91f2.png)
java: Compilation failed: internal java compiler error
·
java: Compilation failed: internal java compiler error
启动项目后报错:java: Compilation failed: internal java compiler error
原因:idea设置的JDK版本和项目配置不同
解决方法:先查看项目中配置的JDK版本,再去idea的配置中去同步版本设置
1.查看项目配置的JDK版本:pom.xml文件
2.idea检查“Java Compiler"的配置
位置:File --> Setting --> Build,Execution,Deployment --> Compiler --> Java Compiler
3.idea检查“Project"的配置
位置:File --> Project Structure --> Project Setting --> Project
4.idea检查“Modules --> Sources"的配置
位置:File --> Project Structure --> Project Setting --> Modules --> Sources
5.idea检查“Modules --> Dependencies"的配置
位置:File --> Project Structure --> Project Setting --> Modules --> Dependencies
以上是本文全部内容,感谢查看!
欢迎参考,感谢指正!
更多推荐
所有评论(0)