Sdkman jdk 설치

Jmnote bot (토론 | 기여)님의 2020년 11월 2일 (월) 02:50 판 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요[ | ]

sdkman JDK 설치
sdkman Java 설치

2 설치[ | ]

Console
Copy
zeta-iMac:~ testuser$ sdk install java

Oracle requires that you agree with the Oracle Binary Code License Agreement
prior to installation. The license agreement can be found at:

  http://www.oracle.com/technetwork/java/javase/terms/license/index.html

Do you agree to the terms of this agreement? (Y/n):
Console
Copy
Downloading: java 8u131

In progress...

######################################################################## 100.0%
... (생략)
We will be needing super powers...
Password:
Console
Copy
Repackaging Java 8u131...
Attaching to the DMG...
Mounting DMG as Volume...
Volume(s) mounted successfully
Installing PKG inside DMG...
installer: Package name is JDK 8 Update 131
installer: Upgrading at base path /
installer: The upgrade was successful.
Copy JDK Home to temp folder...
Preparing archive...
Unmounting volume...
"/Volumes/JDK 8 Update 131" unmounted successfully.
Done repackaging...
Cleaning up cookie...

Installing: java 8u131
Done installing!


Setting java 8u131 as default.

3 확인[ | ]

Console
Copy
zeta-iMac:~ testuser$ sdk list java

================================================================================
Available Java Versions
================================================================================
     9ea163                                                                        
 > * 8u131                                                                         
     8u121                                                                         
     8u111                                                                         
     7u79                                                                          
     6u65                                                                          
                                                                                   
                                                                                   
                                                                                   
                                                                                   
                                                                                   
                                                                                   
                                                                                   
                                                                                   
                                                                                   

================================================================================
+ - local version
* - installed
> - currently in use
================================================================================
Console
Copy
zeta-iMac:~ testuser$ java -version
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
zeta-iMac:~ testuser$ javac -version
javac 1.8.0_131

4 같이 보기[ | ]

편집자 J Jmnote Jmnote bot
  • CentOS JDK 설치
    고맙습니다. 너무너무잘보고갑니다.
  • CentOS JDK 설치
    정리가 정말 깔끔하네요!!! Elliott
  • 리눅스 JDK 버전 확인
    안녕하세요 두번째 방법 :rmp -qa |grep jdk으로 확인해보고있었는데, 총 3개가 나와야되잖아요? 확인결과 src가 안나오는데 상관없는건가요~?
  • 리눅스 JDK 버전 확인
    src는 없어도 됩니다. 본문에서도 삭제했어요.;; 중요 패키지는 openjdk와 openjdk-devel입니다. J Jmnote