'2023/02/06'에 해당되는 글 1건

  1. 2023.02.06 [Centos] Open JDK 11 설치하기

● 현재 설치된 버전 확인

  # java -version

    openjdk version "1.8.0_362"
    OpenJDK Runtime Environment (build 1.8.0_362-b08)
    OpenJDK 64-Bit Server VM (build 25.362-b08, mixed mode)

혹은 

  # rpm -qa | grep java

    tzdata-java-2022g-1.el7.noarch
    java-1.8.0-openjdk-headless-1.8.0.362.b08-1.el7_9.x86_64
    java-1.8.0-openjdk-devel-1.8.0.362.b08-1.el7_9.x86_64
    python-javapackages-3.4.1-11.el7.noarch
    java-1.8.0-openjdk-1.8.0.362.b08-1.el7_9.x86_64
    javapackages-tools-3.4.1-11.el7.noarch

 

● 이전 버전 삭제 하려면

  # yum remove java-1.8.0-openjdk-1.8.0.362.b08-1.el7_9.x86_64

  # yum remove java-1.8.0-openjdk-headless-1.8.0.362.b08-1.el7_9.x86_64

 

● 설치 가능한 SDK 확인

  # yum list java*jdk-devel

    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
     * base: mirror.kakao.com
     * epel: ftp.iij.ad.jp
     * extras: mirror.kakao.com
     * rpmfusion-free-updates: mirrors.ustc.edu.cn
     * updates: mirror.kakao.com
    Installed Packages
    java-1.8.0-openjdk-devel.x86_64 1:1.8.0.362.b08-1.el7_9     @updates
    Available Packages
    java-1.6.0-openjdk-devel.x86_64 1:1.6.0.41-1.13.13.1.el7_3  base
    java-1.7.0-openjdk-devel.x86_64 1:1.7.0.261-2.6.22.2.el7_8  base
    java-1.8.0-openjdk-devel.i686   1:1.8.0.362.b08-1.el7_9     updates
    java-11-openjdk-devel.i686      1:11.0.18.0.10-1.el7_9      updates
    java-11-openjdk-devel.x86_64    1:11.0.18.0.10-1.el7_9      updates

 

● 설치

# yum -y install java-11-openjdk-devel.x86_64

 

● 확인 및 설정 ( 링크 설치 이후 참고 )

https://ggojange.tistory.com/150

 

 

Posted by 꼬장e
,