osx jdk version change
osx jdk version change
vi ~/.profile1
2
3alias jdk6='export JAVA_HOME=$(/usr/libexec/java_home -v 1.6)'
alias jdk7='export JAVA_HOME=$(/usr/libexec/java_home -v 1.7)'
alias jdk8='export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)'
JDK 다운로드
- macOS
jdk-7u80-macosx-x64.dmg
jdk-8u144-macosx-x64.dmg
jdk-9_osx-x64_bin.dmg - Linux
jdk-7u80-linux-x64.tar.gz
jdk-8u144-linux-x64.tar.gz
jdk-9_linux-x64_bin.tar.gz - 윈도우
jdk-7u80-windows-i586.exe
jdk-7u80-windows-x64.exe
jdk-8u144-windows-x64.exe
jdk-9_windows-x64_bin.exe