It's done on your Project. Select Preferences/Java Compiler and set Source Compatibility to 1.4 (or higher).
There's also a hyperlink there to set preferences for the entire workspace.
Customer surveys are for companies who didn't pay proper attention to begin with.
Bharat Roy
Ranch Hand
Joined: Jul 01, 2004
Posts: 156
posted
0
Tim, thanks for the reply but its not working.
The Eclipse editor is complaining, "Syntax error on token assert" - which is not possible as it is getting compiled and run using notepad and command line.
I checked as you said and the default for the project is Java 1.4 version.