- First download the appropriate dmg http://www.oracle.com/technetwork/java/javase/downloads/jdk7u9-downloads-1859576.html
- Install the Java 7
- Open Java Preferences and drag jdk 7 to the top
- Open terminal and check that Java 7 is the default
- Open eclipse and from ‘Installed JRE’ add a new one. Here set the path to ‘/Library/Java/JavaVirtualMachines/jdk1.7.0_09.jdk/Contents/Home’ you cannot use browse.
- Java 7 is now installed!