Q:

How to install Java SE 7 for testing on Mac that requires 6 for production?

I have a development Mac computer which has Java 6 installed.  My development work done in Eclipse uses that.  For my personal own study and experiment, I'd like to use Java 7.  How should I install Java 7 so it does not interfere my normal work?
EDIT: my development work done on the computer actually is sometimes in Eclipse sometimes from command line or even in a different IDE. So ideally I want the environment for these other possibilities also intact.

A:

Just install Java 7 from the installer package. Java will change the command line tools to Java 7, but Eclipse will continue to use Java 6. You can then use the command line tools for testing, or select Java 7 for an Eclipse project.

