문서의 이전 판입니다!
# download wget wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u161-b12/2f38c3b165be4555a1fa6e98c45e0808/jdk-8u161-linux-x64.rpm" # 여기서 link URL 적어줌 # install sudo rpm -i jdk-8u161-linux-x64.rpm # alternatives 등록 sudo /usr/sbin/alternatives --install /usr/bin/java java /usr/java/jdk1.${java_base_version}.0_${java_sub_version}/bin/java 20000 # set as default 화면에서 선택 sudo /usr/sbin/alternatives --config java # 확인 java -version # .bashrc 혹은 .bash_profile 에 환경변수 등록 export JAVA_HOME=/usr/java/default