Tag: Java

Install old JDK versions (1.6, 1.7) in Mac OS X Yosemite

It's already been while since Apple removed the "Java Preference Pane" from OS X, with which it was possible to change between various installed Java versions. I shortly needed to compile some old Java application against the JDK version 1.6 and I was questioning how to change the compiler version. Here's how: JDK 1.6: export JAVA_HOME=`/usr/libexec/java_home -v 1.6` JDK 1.7: export JAVA_HOME=`/usr/libexec/java_home -v 1.7` Then you can query the currently active version by issuing java -version or javac -version: java -version java version...