is not allowed for source level below 1.7 的解决办法

简介: is not allowed for source level below 1.7 的解决办法

今天用Eclipse导入了一个工程,发现了一个错误:


catch (NoSuchMethodException | IllegalAccessException | IllegalArgumentException | InvocationTargetException e)


 这写法没见过。提示is not allowed for source level below 1.7。



 解决办法:


 右键项目--属性--Java Compiler--勾选Enable project specific settings


 Compiler compliance level--选择1.7


 勾选Use default compilance settings


 OK

目录
相关文章
|
关系型数据库 Shell Oracle
RMAN-01009: syntax error: found "dot" 解决办法
RMAN-01009: syntax error: found "dot" 解决方法   今天调试一个RMAN 的备份脚本,这个脚本以前也用过很多次,并没有什么问题,今天执行时,就是过不去。
1459 0
|
8月前
|
Java
【ERROR】‘<>‘ operator is not allowed for source level below 1.7
【ERROR】‘<>‘ operator is not allowed for source level below 1.7
93 0
|
JavaScript
Uncaught runtime errors: × ERROR Avoided redundant navigation to current location: “/xxx“.
Uncaught runtime errors: × ERROR Avoided redundant navigation to current location: “/xxx“.
234 0
|
开发工具
WARNING: library configuration mismatch
WARNING: library configuration mismatch
359 0
|
Java Spring
Initialization failed for ‘https://start.spring.io‘ Please check URL, network and proxy settings解决办法
Initialization failed for ‘https://start.spring.io‘ Please check URL, network and proxy settings解决办法
3724 1
Initialization failed for ‘https://start.spring.io‘ Please check URL, network and proxy settings解决办法
|
Ubuntu 开发工具 芯片
安装mkimage工具,解决报错“Invalid CPU Type - valid names are:”
安装mkimage工具,解决报错“Invalid CPU Type - valid names are:”
213 0
安装mkimage工具,解决报错“Invalid CPU Type - valid names are:”
|
Java Android开发
is not allowed for source level below 1.7 的解决办法
is not allowed for source level below 1.7 的解决办法
227 0
解决办法:找不到g_type_check_instance_cast
解决办法:找不到g_type_check_instance_cast
188 0
|
网络协议 关系型数据库 Linux
onfigure: error: no acceptable C compiler found in $PATH See `config.log' for more details 问题解决
onfigure: error: no acceptable C compiler found in $PATH See `config.log' for more details 问题解决
204 0
|
应用服务中间件 Android开发
a configuration error occurred during startup. place verify the preference field whth the prompt:TomcatJDK name:
a configuration error occurred during startup. place verify the preference field whth the prompt:TomcatJDK name:
151 0
a configuration error occurred during startup. place verify the preference field whth the prompt:TomcatJDK name: