If you want to have the sources for your project compiled for a lower version of the JDK than the project is using, you can set a lower source level in the Project Properties dialog box.
To change the target JDK for your project:
Right-click the project's main node in the Projects window and choose Properties.
Select the Sources node.
In the Source Level combo box, select the source level that you want to compile to.