Open the properties for the project, select the page “Java Compiler” and set the “Compiler Compliance level” to “1.5” or better.
More Related Contents:
- Eclipse: How to build an executable jar with external jar?
- Access restriction: The type ‘Application’ is not API (restriction on required library rt.jar)
- Break when exception is thrown
- Why does Eclipse complain about @Override on interface methods?
- Java enum and additional class files
- Why is JavaFX is not included in OpenJDK 8 on Ubuntu Wily (15.10)?
- How do I add a resources folder to my Java project in Eclipse
- Browse for image file and display it using Java Swing
- A for-loop to iterate over an enum in Java
- Cannot change version of project facet Dynamic Web Module to 3.0?
- “The public type must be defined in its own file” error in Eclipse [duplicate]
- java.lang.OutOfMemoryError: PermGen space [closed]
- Why would one declare a Java interface method as abstract?
- How do I prevent Eclipse from hanging on startup?
- Why shouldn’t Java enum literals be able to have generic type parameters?
- Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1) – PhoneGap
- Conveniently map between enum and int / String
- Android – How to create clickable listview?
- How to convert enum value to int?
- Setting up Eclipse with JRE Path
- Why can’t I use Resources.getSystem() without a Runtime error?
- How to configure Eclipse build path to use Maven dependencies?
- Java Enums and Switch Statements – the default case?
- How can I disable compiler warnings in Eclipse on a file specific basis? [duplicate]
- Error starting jboss server
- The TCP/IP connection to the host localhost, port 1433 has failed
- problems with java3D lib configuration
- What project files does Visual Studio Code create via its Java extensions?
- VariableDeclarationFragment node resolveBindind() returns null in eclipse/jdt/ast
- How to insert a document with date in mongo?