Reputation: 26938
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.
Upvotes: 0
Views: 41
Reputation: 328
hopefully this helps...
this is on eclipse tool bar, eclipse > preferences
search for "installed" select the Installed JRE's option to see if yours is there.
search for "execution" select execution environments, select 1.6 and 1.7 and check that the setting are what you want.
you should also check the project setting and make sure to check which JRE they are using i.e workspace vs project settings.
Upvotes: 1
Reputation: 17007
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.
Upvotes: 1