Use the Workspace Preferences page to set the Java™ compiler compliance.
Procedure
- To open the workspace preferences page, select . The Compiler page opens:
- In the Compiler compliance field, select the compiler level
that you want to use for your application. You must select the compiler
level that is supported by the version of the WebSphere® Application Server that you are
deploying to.
- If you are using WebSphere Application Server version
8.5, select Java 1.6 or Java 1.7 compiler compliance.
- If you are using WebSphere Application Server version
7.0 or 8.0, select Java 1.6 compiler compliance.
- If you are using WebSphere Application Server version 7.0, select Java 1.6 compiler compliance. For
more information about Compiler versions supported by WebSphere Application Server, see Testing and publishing on your server