I would like to know what the best way would be to have multiple versions of Java (both JRE and JDK) installed on Mavericks, and also the best way to be able to use these version with Eclipse.

Currently I appear to have the following versions of JDK and JRE installed:

  • 1.7.0_45 (/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/bin/)
  • 1.7.0_45 (/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/)
  • 1.6.0_65 (/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/)

As far as I can tell, the two version of 1.7.0_45 are not symlinked to each other.

I am interested in installing a version of Java 8 as well, where and how should I install it to make it play nice with the existing versions?

  • 2
    This question and answer addresses it quite well: apple.stackexchange.com/questions/69086/… Jan 17, 2014 at 8:05
  • hat link is correct for the general case but Eclipse is a separate question. see this SO question
    – mmmmmm
    Jan 17, 2014 at 11:29
  • How did you get Java 7 into /System ?
    – mmmmmm
    Jan 17, 2014 at 11:29
  • @Mark I have no idea. Should it not be there? Jan 18, 2014 at 1:44
  • Only Apple supplied files should be in /System. Oracle supplied JDKs should be in /Library
    – mmmmmm
    Jan 18, 2014 at 8:26

1 Answer 1


Eclipse has its own list of JREs that it knows about in Preferences > Java > Installed JREs. When running programs in Eclipse you can choose from this list of JREs.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .