728x90
반응형
[Ubuntu Linux] Linux(Unix)에 압축본 JDK 설치하기 |
1. jdk 다운로드
- https://www.oracle.com/java/technologies/downloads/#java19
2. 압축풀기
- tar -zxvf jdk-19_linux-aarch64_bin.tar.gz
3. 관리하기 적당한 폴더로 이동
- /usr/local 하위에 java 폴더를 만든다
- javanian@ubuntu:/usr/local$ sudo mv ~/download/jdk-19.0.2/ java/
javanian@ubuntu:/usr/local/java$ ll total 12 drwxr-xr-x 3 root root 4096 Feb 21 10:18 ./ drwxr-xr-x 12 root root 4096 Feb 21 10:17 ../ drwxrwxr-x 9 javanian javanian 4096 Feb 21 10:14 jdk-19.0.2/ javanian@ubuntu:/usr/local/java$ |
4. 자바 버전 확인
- $ java -version
javanian@ubuntu:/usr/local/java$ ll total 12 drwxr-xr-x 3 root root 4096 Feb 21 10:18 ./ drwxr-xr-x 12 root root 4096 Feb 21 10:17 ../ drwxrwxr-x 9 javanian javanian 4096 Feb 21 10:14 jdk-19.0.2/ javanian@ubuntu:/usr/local/java$ javanian@ubuntu:/usr/local/java$ cd jdk-19.0.2/ javanian@ubuntu:/usr/local/java/jdk-19.0.2$ cd bin javanian@ubuntu:/usr/local/java/jdk-19.0.2/bin$ java -version Command 'java' not found, but can be installed with: sudo apt install openjdk-11-jre-headless # version 11.0.17+8-1ubuntu2~22.04, or sudo apt install default-jre # version 2:1.11-72build2 sudo apt install openjdk-17-jre-headless # version 17.0.5+8-2ubuntu1~22.04 sudo apt install openjdk-18-jre-headless # version 18.0.2+9-2~22.04 sudo apt install openjdk-19-jre-headless # version 19.0.1+10-1ubuntu1~22.04 sudo apt install openjdk-8-jre-headless # version 8u352-ga-1~22.04 javanian@ubuntu:/usr/local/java/jdk-19.0.2/bin$ javanian@ubuntu:/usr/local/java/jdk-19.0.2/bin$ sudo apt install openjdk-19-jre-headless Reading package lists... Done Building dependency tree... Done Reading state information... Done ~~~ No containers need to be restarted. No user sessions are running outdated binaries. No VM guests are running outdated hypervisor (qemu) binaries on this host. javanian@ubuntu:/usr/local/java/jdk-19.0.2/bin$ javanian@ubuntu:/usr/local/java/jdk-19.0.2/bin$ java -version openjdk version "19.0.1" 2022-10-18 OpenJDK Runtime Environment (build 19.0.1+10-Ubuntu-1ubuntu122.04) OpenJDK 64-Bit Server VM (build 19.0.1+10-Ubuntu-1ubuntu122.04, mixed mode, sharing) javanian@ubuntu:/usr/local/java/jdk-19.0.2/bin$ |
728x90
반응형
'네트워크,서버,프로그래밍' 카테고리의 다른 글
[Ubuntu Linux] Linux(Unix) 파일링크 사용하기 - 바로가기 (0) | 2023.02.24 |
---|---|
[Ubuntu Linux] jdk 환경(PATH) 설정 및 톰켓 서버 실행하기 (0) | 2023.02.21 |
[Ubuntu Linux] 톰캣 서버 설치하기 (0) | 2023.02.21 |
[Ubuntu Linux] 리눅스 [Linux] root 비밀번호 설정 (0) | 2023.02.21 |
[미완료 Ubuntu Linux] 리눅스 서버 구축 #1 - Oracle 설치 (0) | 2023.02.20 |