Solution - Parameterized types are only available if source level is 1.5
If you are using Java in Eclipse IDE and see this error in your Class using parameterized collections, then that's because your installed Java JDK is either below 1.4 or your compilation Java version is below 1.5
Solution:
- Go to Eclipse,
- Go to Menu: Windows -> Preferences (Elcipse -> Preferences if using macOS),
- Now expand Java -> Compiler -> Compliler compliment level: Select Java 1.5 or higher.
- Click Apply and Close,
- Clean & Build your Project again the error should go.
⛏️ It may be so that you have set the compilation setting at your project level, in such a case you need to Right-click on your Project folder and follow the same steps under Properties.
More Posts related to Eclipse,
- 300+ Eclipse IDE Keyboard Shortcuts for Mac
- How to Word wrap eclipse console logs width
- [Eclipse] Enable or Disable print margin line
- Syntax error, parameterized types are only available if source level is 1.5 or greater [Java]
- How to Change Eclipse Default Web Browser
- How to run a Maven jar project from eclipse without tomcat
- [Fix] Spring Tool Suite STS Code Autocomplete not working with Eclipse
- eclipse maven m2e : Cannot complete the install
- Installing JD Decompiler plugin in Eclipse IDE
- How to enable line numbers in Eclipse IDE
- Eclipse Error : The Eclipse executable launcher was unable to locate its companion shared library.
- Install Eclipse IDE on M1 Mac Natively
- How to remove unwanted Java imports in IntelliJ (alternative of eclipse Ctrl + Shift + O)
- Word-wrap Eclipse Console logs
- Eclipse Error The JVM Shared Library JavaVirtualMachines does not contain the JNI_CreateJavaVM symbol
- How to switch Eclipse IDE Workspace
- How to Reset Eclipse Theme to Classic
- [Eclipse] Syntax error, annotations are only available if source level is 1.5 or greater
- Java was started but returned exit code=13 [Eclipse]
- How to use Content Assist in Eclipse IDE
- Java Decompiler Eclipse Plugin
- Search text in Eclipse Console logs
- How to Save Eclipse console logs in external log file
- Eclipse version 32-bit or 64-bit check on macOS
- How to display Line Number in Eclipse IDE
More Posts:
- Android Activity Main xml stuck loading - Android-Studio
- How to create StackOverflow error in java - Java
- How to fix: You will need Google Chrome to install most apps, extensions and themes. - Chrome
- Sublime Text 3 Convert Case to Upper, Lower, Title or Swap - Sublime-Text
- Java -Day of the week using Java 8 DayOfWeek Enum - Java
- SharePoint list excel import error - Title is a required filed and can't be empty - SharePoint
- How to send SMS on Android Emulator - Android
- Users experience call quality issue, voice distortion, disconnection with Microsoft Teams call and meeting - Teams