mac과 linux(ubuntu)에서 환경변수 JAVA_HOME 지정 하기


<MAC OS> 

http://www.mkyong.com/java/how-to-set-java_home-environment-variable-on-mac-os-x/


 $ /usr/libexec/java_home

/Library/Java/JavaVirtualMachines/jdk1.7.0_65.jdk/Contents/Home


$ export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.7.0_65.jdk/Contents/Home"




<Linux-ubuntu>

https://www.digitalocean.com/community/tutorials/how-to-install-java-on-ubuntu-with-apt-get


$ sudo update-alternatives --config java


$ sudo nano /etc/environment


$ JAVA_HOME="YOUR_PATH"


$ source /etc/environment


Posted by '김용환'
,