解决IntelliJ IDEA 报编译错误Error:(36, 74) java: diamond operator is not supported in -source 1.5 (use -s
来源:互联网 发布:移动巡检软件 编辑:程序博客网 时间:2024/06/13 16:20
用IntelliJ IDEA创建maven项目,当运行时如果没有进行language level设置可能会报如下错误(如果你的JDK版本高于1.5):
Error:(36, 74) java: diamond operator is not supported in -source 1.5
(use -source 7 or higher to enable diamond operator)
解决方法:
File -> Project Structure -> Project Settings -> Modules -> "Your Module Name" -> Sources -> Language Level(将这个Language Level设置成与你的JDK版本相同的版本即可)
0 0
- 解决IntelliJ IDEA 报编译错误Error:(36, 74) java: diamond operator is not supported in -source 1.5 (use -s
- 记一次Maven 打包multi-catch statement is not supported in -source 1.5 [ERROR] (use -source 7 or higher to
- mvn compile error : try-with-resources is not supported in -source 1.5
- Maven giving error: try-with-resources is not supported in -source 1.5
- IntelliJ Idea编译报错:请使用 -source 7 或更高版本以启用 diamond 运算符
- IntelliJ Idea编译报错:请使用 -source 7 或更高版本以启用 diamond 运算符
- idea javaweb项目 jsp页面报错:'<>'operator is not allowed for source level below 1.7
- idea启动web项目报 Error running Tomcat8: Address localhost:1099 is already in use 的错误
- 执行mvn 报错 source-1.5 中不支持 diamond运算符与 Intellij idea找不到misc.xml文件
- IntelliJ IDEA Error running Unnamed:Address localhost:1099 is already in use
- wsimport报错Use of SOAP Encoding is not supported.
- idea中无法编译maven项目 java:-source 1.5 中不支持 diamond 运算符
- 关于clover2运行时出现的"annotations are not supported in -source 1.3"错误的解决
- detours编译错误fatal error C1189: #error: Feature not supported in this release
- jenkins报错strings in switch are not supported in -source 1.5
- Maven错误generics are not supported in -source 1.3
- maven打包错误: -source 1.5 中不支持 diamond 运算符以及@Override is not allowed when implementing interface method
- OSCache的源码编译Cache.java 文件报add(Class, T) in the type EventListenerList is not applicable for the arguments 错误的解决
- (36)Spring Boot Cache理论篇【从零开始学Spring Boot】
- 十个免费的 Web 压力测试工具
- DBLINK
- 自定义圆加载进度单点触控
- 两数组求交集元素-C描述
- 解决IntelliJ IDEA 报编译错误Error:(36, 74) java: diamond operator is not supported in -source 1.5 (use -s
- 我一个程序员的工作日作息时间表
- 关键字自动的Python自动化测试书籍
- Linux netstat命令详解
- Web应用的性能优化思路——找到瓶颈
- iOS开发--第三方框架导入方法之CocoaPods
- 消息中间件剖析
- 树上倍增的写法和应用(详细讲解,新手秒懂)
- C# 列表视图