Switch between Java 8, Java 7 and Java 6 on OS X

A solution for easily switching the JDK:

List Java Virtual Machines:

/usr/libexec/java_home -V


Switch to Java 6:

export JAVA_HOME=`/usr/libexec/java_home -v 1.6`


Switch to Java 7:
export JAVA_HOME=`/usr/libexec/java_home -v 1.7`


Switch to Java 8:
export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
or
export JAVA_HOME=/System/Library/Java/Home 

Comments

Popular posts from this blog

Tuxera NTFS for Mac 2015

VMware Fusion 8 + License Key for MacOSX

ForkLift 3.0.6 cracked for Mac

Running Multiple Versions of Node.js with Node Version Manager

DaisyDisk 4.6.5 Cracked for macOS Mojave v10.14

CleanMyMac 3.9 cracked for Mac

10 Web-Based Tools for Exploring the Capabilities of OpenAI and Machine Learning