Setting Java 5 in Eclipse

Choose the Windows>Preferences... option under the Windows menu in the main Eclipse menubar.

When the dialog opens, select the Java arrow to display its options. This should reveal a picture similar to the one below.

jdk eclipse

Make sure the compiler compliance level is set 5.0, then you're good to go.


Owen L. Astrachan
Last modified: Wed Sep 13 22:06:49 EDT 2006