Installing Java 7 on Mac (and eclipse)

First download the appropriate dmg 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!