The default lower version of the JDK was used in the project creation process; just set the JDK version above 1.5.
right-click on the project and select properties at the bottom to go to the project configuration page
Read More:
- Eclipse Syntax error, annotations are only available if source level is 1.5 or greater
- Syntax error, annotations are only available if source level is 1.5 or greater.
- Syntax error, annotations are only available if source level is 1.5 or greater
- Eclipse .java File Syntax error, parameterized types are only available if source level is 1.5 or
- [Solved] error: Microsoft Visual C++ 14.0 or greater is required
- When using ionic to build Android APK, Cordova error is reported: requirements check failed for JDK 1.8 or greater
- Version 1.8.0_201 of the JVM is not suitable for this product. Version: 11 or greater is required.
- Annotations are not allowed here
- How to solve the problem of “version 11 or greater is required” in eclipse 2020
- Wrong classification of Python — assertion cur_ Target is greater than or equal to 0 and cur_ Target is less than n_ classes failed
- Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft C++ Build Tools“
- Diamond types are not supported at this language level appears in IntelliJ
- Start eclipse and prompt version 1.7.0_ 79 of the JVM is not suitable for this product. Version: 1.8 or greater i…
- Error in Maven packaging web project: webxml attribute is required (or pre existing WEB-INF)/ web.xml if executing in update)
- Syntax error or access violation: 1055 Expression #1 of SELECT list is not in GROUP BY clause and co
- Springboot error: property ‘sqlsessionfactory’ or ‘sqlsessiontemplate’ are required error details
- An error is reported when executing MVN. The diamond operator is not supported in source-1.5
- Error: (44,73) lambda expression and XML are not supported in Java: – source 1.7 Error:java : Compilation failed
- Syntax error or access violation: 1071 specified key was too long; max key length is 767 bytes
- JetBrains compilation error is due to project language level