echo 'export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_291.jdk/Contents/Home/' >> ~/.bash_profile source ~/.bash_profile