I have an old Java 6 Project in Eclipse. To use functionality of Java 7 I would like to switch to Java 7. I am not able to do it :
Goal->No compilation errors in my Java Code . See red underlinded the compilation error when using ZipFile with 2 parameters used for Java 7. The Constructor of ZipFile in Java 6 has one argument. In Java 7 there are 2 arguments: 
My Environment in my project: 
Compilation Error is:
Exception in thread "main" java.lang.Error: Unresolved compilation problems: The constructor ZipFile(String, Charset) is undefined The constructor ZipFile(String, Charset) is undefined at ZipCompare.compare(ZipCompare.java:103) at ZipCompare.main(ZipCompare.java:77) 


When I create a new Project from scratch, there are no compilation errors. I compared all settings from my old project and the new one and did not find any differences so far ?
Any help ?
enumas a keyword. As Marko mentioned, the Java 7 API still has all those constructors, so something else is broken. The problem appears to be that you installed just a JRE and not a JDK.