To downgrade your JDK you will need the JDK installation package and an app called Pacifist, available from. Now you only have to install the version you like. jdk directory of the JDK 7 in /Library/Java/JavaVirtualMachines. I just managed to downgrade both JRE and compiler from Java 8 to 7 by looking into /Library/Java/JavaVirtualMachines, and moving away the directory with the highest version number, e.g. That does not seem to be accurate any more. Oh, and if you haven’t already, try running /Applications/Utilities/Java Preferences.app, which lets you change the default Java on your machine amongst the ones you have installed.
For that, you would probably have to download the updaters for each 10.6 release, and extract the JDK installer from the updater (using something like Pacifist The one closest to yours I could find was for Java 1.6.0_15 for Mac OS 10.5 (you didn’t mention which Mac OS X version you were running): If the older JDK isn’t on your machine, you’d need to use the GUI and download the Java updater. Does anyone know how to downgrade the version for JRE/JDK from 1.6.0_24 to 1.6.0_18 on a Mac OSX thru Terminal? I need to downgrade in order to get a Java applet working in Firefox.