Error:(43, 20) java: diamond operator is not supported in -source 1.5
  (use -source 7 or higher to enable diamond operator)

或者

Error:java: javacTask: source release 8 requires target release 1.8

总共要检查6个地方,

Project Structure->Project(设置图中2处Project SDK与Project language level)

Project Structure->Modules(设置图中1处Language Level)

下面2处bytecode都要设置成8

如果上面的还不行,那么需要在pom.xml中检查:

<build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                    <encoding>UTF-8</encoding>
                </configuration>
            </plugin>
        </plugins>
    </build>

diamond operator is not supported in -source 1.5和source release 8 requires target release 1.8的问题相关推荐

  1. 【解决】Error:java: javacTask: source release 8 requires target release 1.8

    第一个问题:有一段java代码,明明写的没有问题,在intellij IDEA中却画了红线 解决办法: 将java版本设置成你的JDK的版本. 运行程序,这个时候可能带来第二个问题 第二个问题 Err ...

  2. Maven错误 diamond operator is not supported in -source 1.5 (use -source 7 or higher to enable diamond

    转自:https://www.cnblogs.com/EasonJim/p/6832049.html Maven错误 diamond operator is not supported in -sou ...

  3. iamond operator is not supported in -source 1.5

    intellij运行flink出现下面的问题 Error:(56, 48) java: diamond operator is not supported in -source 1.5   (use ...

  4. diamond types are not supported at this language level

    在intellij导入git项目之后出现 diamond types are not supported at this language level错误 或者String等报错 File->P ...

  5. java.lang.IllegalArgumentException: Numbers of source Raster bands and source color space components

    项目在文件压缩的时候报错如下: Exception in thread "main" java.lang.IllegalArgumentException: Numbers of ...

  6. android you can attach the source by clicking attach source below

    使用eclipse做Android开发时,想查看或追溯一些系统api时,往往会出现: The JAR /home/xxx/.../android.jar has no source attachmen ...

  7. linux source.命令,linux下source命令详解

    本文收集整理关于linux下source命令详解的相关议题,使用内容导航快速到达. 内容导航: Q1:linux下的source命令 linux下的source命令source 命令是 bash sh ...

  8. linux脚本添加source,shell中的source命令的巧妙用法

    首先,通常用于重新执行刚修改的初始化文件,使之立即生效,而不必注销并重新登录.例如,当我们修改了/etc/profile文件,并想让它立刻生效,而不用重新登录,就可以使用source命令,如sourc ...

  9. Maven工程 报 Diamond types are not supported at language level ‘5‘

    选择file project Structure 1.Project – Project language level 选择8 2. Modules – Language level: 选择8

最新文章

  1. mysql join not in_MySQL 使用左连接替换not in
  2. 你也能与AlphaGo谈笑风生:AlphaGo教学工具上线,2万多变化,37万多步棋
  3. 笔记-企业管理知识-战略组织类型
  4. boost::histogram::axis::circular用法的测试程序
  5. phpcms9.6 ueditor_Phpcms v9深度整合百度编辑器Ueditor
  6. 炒股应只做确定的上涨
  7. POJ1212 HDU1650 UVA180 LA5240 Eeny Meeny【约瑟夫环】
  8. Nacos视频教程分享
  9. SQLAPI++ Library 4.2.1 VS2010破解版
  10. AI芯片发展的前世今生
  11. android图片自动翻转,android图片翻转镜像
  12. php文章下一页,php获取文章上一页与下一页的方法,_PHP教程
  13. 从期刊层面看科研!计算机顶级期刊大盘点(上)
  14. [iOS] 浅析排序规则描述类: NSSortDescriptor
  15. 北交《计算题体系结构》实验四——Tomasulo算法实验
  16. python实现千牛客服自动回复语_千牛自动回复设置话术
  17. 入耳式蓝牙耳机哪种音质好?微型蓝牙隐形耳机推荐
  18. layui fixbar 返回顶部_普洱顶部排水板价格,屋面疏水板,本周热搜_程源排水工程材料...
  19. 2.zookeeper
  20. Beta 测试和 Alpha 测试有什么区别?

热门文章

  1. 201571030322/201571030319《小学生四则运算软件需求说明结对项目报告》
  2. 如何理解java采用Unicode编码
  3. php 二维数组 根据某个字段排序
  4. 5.25上午 外教专业课 听力
  5. WebView加载html页面
  6. spring源码分析的书到了
  7. 对discuz的代码分析学习(三)mysql驱动
  8. 详细解读Spring2.5 +Struts1.3 框架(使用Spring声明式事物管理和springjjdbc模板)
  9. HDU 1059 Dividing
  10. 颜色表及html代码