MacへのJAVA_HOME追加

% /usr/libexec/java_home -V
Matching Java Virtual Machines (2):
    1.8.0_65, x86_64:  "Java SE 8"  /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home
    1.7.0_80, x86_64:  "Java SE 7"  /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home

/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home
 ~
% export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
 ~
% echo $JAVA_HOME
/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home
 ~