IDEA报错Target level '1.6' is incompatible with source level '1.7'
IDEA 报错 is with 39 source Target
2023-09-14 08:58:27 时间
解决IDEA 编译级别
Error:java: Target level '1.6' is incompatible with source level '1.7'. A target level '1.7' or better is required
打开之后发现有一个编译级别设置的不对
更改如下:
如果上面的方法还是不行的话,就建议你改一下pom文件中的maven插件编译级别,可以通过搜索所有的pom.xml,1.6这个关键词,就看出来了。
<profiles>
<profile>
<id>jdk1.7</id>
<activation>
<activeByDefault>true</activeByDefault>
<jdk>1.7</jdk>
</activation>
<properties>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
<maven.compiler.compilerVersion>1.7</maven.compiler.compilerVersion>
</properties>
</profile>
</profiles>
相关文章
- mac打开idea无反应_idea安装完打不开
- 十大Intellij IDEA快捷键
- IDEA写jsp代码报错,但是正常运行解决
- idea中通过ssh推送代码到gitee_github报错
- idea Tomcat日志乱码问题
- IDEA注释详解_idea自定义注释模板
- IDEA设置JVM运行参数[通俗易懂]
- 12 款 yyds 的 IDEA插件,配上18条使用技巧,绝了
- idea程序包org不存在-IDEA 程序包不存在
- 【Git】IDEA使用Git(完)
- java和IntelliJ IDEA的区别,附带Idea激活码哈
- 【错误记录】Mac 中 IntelliJ IDEA 运行 Python 程序报错 ( No module named ‘threadpool‘ )
- 【错误记录】IntelliJ IDEA 编译 Java 文件报错 ( 错误: 非法字符: ‘ufeff‘ )
- IntelliJ IDEA 编译代码报错 找不到符号 符号: 找不到符号包 包详解程序员
- 利用Idea连接MySQL数据库(idea连接mysql)
- 实现idea开发MySQL应用:借助MySQL驱动(ideamysql驱动)
- 想法联接Oracle突破技术壁垒,实现梦想(idea链接oracle)
- 深入探索Idea运行Oracle的可能性(idea运行oracle)
- 让Idea帮你登录Oracle数据库(idea登录oracle)
- 利用Idea添加Oracle进行开发(idea添加oracle)
- IDEA中快速搭建Redis连接(redis连接idea)