CentOS에서 alternatives 이용한 java version 관리System Management2018. 7. 31. 13:38
Table of Contents
alternatives --install /usr/bin/java java /opt/jdk/1.8.0_131/bin/java 2
alternatives --config java
#There is 1 program that provides 'java'.
# Selection Command
#-----------------------------------------------
#*+ 1 /opt/jdk1.8.0_131/bin/java
#Enter to keep the current selection[+], or type selection number:
#javac와 jar 명령어 경로도 alternatives 적용 권장
#At this point JAVA 8 has been successfully installed on your system.
#We also recommend to setup javac and jar commands path using alternatives
alternatives --install /usr/bin/jar jar /opt/jdk/1.8.0_131/bin/jar 2
alternatives --install /usr/bin/javac javac /opt/jdk/1.8.0_131/bin/javac 2
alternatives --set jar /opt/jdk/1.8.0_131/bin/jar
alternatives --set javac /opt/jdk/1.8.0_131/bin/javac
반응형
'System Management' 카테고리의 다른 글
ganglia 실행 시 There was an error collecting ganglia data (127.0.0.1:8652): fsockopen error: Permission denied 에러 처리 (0) | 2020.03.27 |
---|---|
ModuleNotFoundError: No module named '_sqlite3' 장애 조치 (0) | 2019.10.14 |
리눅스 계정 keygen 생성 및 복사 명령어 (0) | 2018.07.31 |
CentOS7 리눅스Python3.6 버전과 pip3 설치 (0) | 2018.04.21 |
vi 편집기에서 찾기 하이라이트 표시하기 (0) | 2018.03.27 |
@kogun82 :: Ctrl+C&V 로 하는 프로그래밍
Korean BioInformation Center(KOBIC) Korea Research Institute of Bioscience & Biotechnology Address: #52 Eoeun-dong, Yuseong-gu, Deajeon, 305-806, KOREA +82-10-9936-2261 e-mail: kogun82@kribb.re.kr Blog: kogun82.tistory.com Homepage: www.kobic.re.kr
포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!