tags:

views:

1493

answers:

2

I want to install JDK 1.5 and 1.6 on XP, is it possible? how to do it

Also, I am using Eclipse how to setup using different JDK for different projects?

thanks.

+5  A: 

You may install different JDKs easily: just specify different folders.

You can setup the installed JDKs in Eclipse Window/Preferences/Installed JREs

You can pick the JDK and Java version for every single project in Project/Properties/Java Compiler

Manrico Corazzi
Beat me to the punch, +1
Stefan Thyberg
But then Sun will constantly try to update both of them.
graham.reeds
No, Sun will only always see the last version you installed. Also, you can install, copy the directory somewhere and then uninstall. Java doesn't need the registry keys to work. Just set JAVA_HOME and it'll work.
Aaron Digulla
A: 

Why? There is an option (can't remember where exactly - right-click on your project) that allows you to set the target JDK level. I use this when developing GWT applications.

graham.reeds