Tuesday, October 12, 2010

Handling JDK Version Compatibility in Eclipse

How to compile the Java Source files of a Web Project made in Eclipse according to the JDK insatalled in the client / production server machine?

A dynamic web project made in eclipse can be recomplied to lower versions of JDK using the following steps:

- Right Click the project and click on Properties
- Then Click on Java Complier
- In the Java Complier Node there is a section called as JDK Compliance. In that there is a field called as Complier Compliance Level that has the JDK version feilds. Accordingly select the JDK version then click on Apply.
- Once Apply is clicked, It will ask do you want to ReBuild your project now to apply the changes. Click on Yes, the project will get reComplied.

Using the steps above you can make your web project compatiable with any version of JDK you require.

- Payal Maru
Team Lead - J2EE Application Development

www.navsya.com