Edit your .bash_profile and add the line:
#For Java 7:
export JAVA_HOME="`/usr/libexec/java_home -v ‘1.7*’`"
#For Java 8:
export JAVA_HOME="`/usr/libexec/java_home -v ‘1.8*’`"
Edit your .bash_profile and add the line:
#For Java 7:
#For Java 8:
by
Tags:
Leave a Reply