Compiling old Java source code with eclipse

eclipse, java

Solution

Check the Properties > Java Compiler settings again. You can get rid of the error caused by use of reserved keyword `enum` by configuring the compiler compliance settings like in this dialog (I am using Juno):

Juno dialog

Problem

I'm building pretty old Java code that uses "enum" as variable names, and I got "Enumeration cannot be resolved to a variable" error. How can I remove the errors? ``` <OLD JAVA CODE> Enumeration enum = props.propertyNames(); while (enum.hasMoreElements()) { ``` Following this site, I tried to setup compiler compliance level to 1.3, but it doesn't work.

Original source