我在idea ide中编译一些简单的源代码时遇到了这个错误。java: diamond operator is not supported in -source1.6 (use -source 7 or higher to enable diamond operator)但是在哪里可以添加这个"-source 7“选项呢?
/gradlew clean buildwarning: [options] bootstrap class path not set in conjunction with -source1.6
/Users/eladb/WorkspaceQa/java/UsersServer/src/test/java/linqmap/users/jms/UsersServerAccessPropUserNameTes
我有以下代码,它与Java1.7兼容,但是,我需要它与java1.6兼容。当前,对于此代码,我得到以下错误:try-with-resources is not supported in -source1.6 try (QueryExecution qexecresults.hasNext()) { } }
为了让它与java 1.6
在eclipse中创建Maven安装时,我得到了-source 1.5中不支持的所有类型的java错误。我的代码没有任何问题。org.apache.maven.plugins:maven-compiler-plugin:3.1[241,29] try-with-resources is not supported in -source 1.5
[156,64] <
plugin/pushnotifications/PushNotifications.java:888: error: lambda expressions are not supported in -source1.6
(use -source 8 or higher to enable lambda expressions)
1 error