본문 바로가기
SW/resin jdk

Centos7 jdk 설치 (apache resin 연동)

by bigju 2024. 7. 5.

JDK 설치

 

cd /usr/local/src

wget https://download.java.net/java/GA/jdk16.0.2/d4a915d82b4c4fbb9bde534da945d746/7/GPL/openjdk-16.0.2_linux-x64_bin.tar.gz

mkdir /usr/java

tar xfz openjdk-16.0.2_linux-x64_bin.tar.gz 

mv /usr/local/src/jdk-16.0.2/ /usr/java/jdk

vi /etc/profile

export JAVA_HOME=/usr/java/jdk
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=$CLASSPATH:$JAVA_HOME/jre/lib/ext:$JAVA_HOME/lib/tools.jar

source /etc/profile

java -version
openjdk version "16.0.2" 2021-07-20
OpenJDK Runtime Environment (build 16.0.2+7-67)
OpenJDK 64-Bit Server VM (build 16.0.2+7-67, mixed mode, sharing)


echo $JAVA_HOME

'SW > resin jdk' 카테고리의 다른 글

Centos7 resin 설치 (apache resin 연동)  (0) 2024.07.06

댓글

메인으로가기


    

Big Ju

IT Engineer


항상 답을 위해 노력하는

엔지니어입니다.

 

 

    


 UP!