IDEA报错Target level '1.6' is incompatible with source level '1.7'
2016-02-19 17:38
295 查看
解决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这个关键词,就看出来了。
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>
相关文章推荐
- 初识js中的闭包
- 设计模式之备忘录模式
- Web之一 JS
- 15.Transition动画效果私有API说明
- 4-9 统计个位数字
- Python基础学习笔记(二)语法简介
- 一次服务器环境搭建的记录(nginx+php+subversion)
- 学校有多个班级,有语数外多门成绩,按照成绩排序后,找出每个班级语文成绩前五名学生
- 菜鸟运维笔记:安装MySQL,PHP及phpMyAdmin
- 一个华为面试题
- Centos下部署Solr 搜索引擎
- Lucene 的相关操作问答
- windows系统下Python环境的搭建
- synchronized
- ZOJ 2971 Give Me the Number(模拟)
- Mysql 查询当前数据上一条和下一条的记录
- http://www.oschina.net/question/2367675_236222
- 设计模式--19、解释器模式
- 寒假要完成的任务
- 手动编译源码升级gcc4.8.2