About Senthil

all about senthil

How to set JAVA_HOME in MAC

By admin | November 28, 2016 | 0 Comment

1. Mac OSX 10.5 or later In Mac OSX 10.5 or later, Apple recommends to set the $JAVA_HOME variable to /usr/libexec/java_home, just export $JAVA_HOME in file ~/. bash_profile $ vim ~/.bash_profile export JAVA_HOME=$(/usr/libexec/java_home) $ source ~/.bash_profile $ echo $JAVA_HOME /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home Why /usr/libexec/java_home? This java_home can return the Java version specified in Java Preferences for the […]

Continue Reading