Install oracle java8 on amazon linux2

Delete existing java

$ sudo yum remove -y java

Install java from oracle

$ wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie"


$ tar -xzvf jdk-8u181-linux-x64.tar.gz

### Edit ~ / .bashrc

#### **`sudo vim ~/.bashrc`**

Add the following to ~ / .bashrc

alias cls='clear'
export JAVA_HOME=~/jdk1.8.0_181
export JRE_HOME=~/jdk1.8.0_181/jre
export PATH=$PATH:~/jdk1.8.0_181/bin:/~/jdk1.8.0_181/jre/bin

Reflect settings

source ~/.bashrc

### Verification
```java -version```

Recommended Posts

Install oracle java8 on amazon linux2
Install tomcat 5.5 on Amazon Linux.
Install Homebrew on Amazon Linux 2
Install strongSwan 5.9.1 on Amazon Linux 2
Install Python Pillow on Amazon Linux
Install pyenv on EC2 (Amazon Linux)
Install java (Oracle JDK14) on CentOS7
[Note] Install Imagick on Amazon Linux2
I'll install Ruby on EC2 (Amazon Linux2) 2020
How to install Anisble on Amazon Linux 2
Install Python 3.8, Pip 3.8 on EC2 (Amazon Linux 2)
Install PHP 7 series on Amazon Linux 2 with Amazon Linux Extras
Install Linux on your Chromebox
Install the JDK on Linux
Put jenv on Amazon Linux
Use sshpass on Amazon linux2
Compile and install MySQL-python for python2.7 on amazon linux
[AWS EC2] How to install Maven on Amazon Linux 2
Announcing the availability of Java 11 LTS on Amazon Linux 2
Install LAMP on Amazon Linux 2 and build a WordPress environment.
Try installing OpenAM on Amazon Linux
Install CUDA on Linux Mint Mate 20
Install Arch Linux on DeskMini A300
How to install wkhtmltopdf (Amazon Linux2)
How to install VMware-Tools on Linux
[Note] Run Django on Amazon Linux 2
Run docker-compose on Amazon Linux2 on ARM64
Introduce Python 3.5.2 environment on Amazon Linux
Run cron on Amazon Linux (set on Linux)
[Personal memo] Install the latest Java on Amazon Linux that already contains Java and switch the version
Install scipy on Linux without internet connection
How to install aws-session-manager-plugin on Manajro Linux
Install wsl2 and master linux on windows
Use Numpy, Scipy, scikit-learn on Amazon Linux
How to update php on Amazon linux 2
Install and launch k3s on Manjaro Linux
Build an LNPP environment on Amazon Linux 2
Install and Configure TigerVNC server on Linux
Learn sshd_config and authorized_keys (on Amazon Linux 2)
Upgraded mysql on Cloud9 (Amazon Linux) (5.5 to 5,7)
How to install packages on Alpine Linux
5 reasons to install Linux on your laptop.
Dockerfile: Install Docker on your Linux server
Install Mecab on Linux (CentOS) with brew
Run Keycloak on Amazon Linux 2 without Docker
How to install php7.4 on Linux (Ubuntu)
Install rJava on Linux in R3.6 environment.
Until you install Arch Linux on VMware
Linux "Install on / dev / sda" error resolution
A story I was addicted to trying to install LightFM on Amazon Linux
Install Python3 and Django on Amazon Linux (EC2) and run your web server
Install debian on linux on Arrows tab Q584 / H
Install Anydesk Linux version on Chromebook [Result NG]
[Note] Install wxPython 3.x on Linux Mint (Ubuntu)
Build Oracle Database 19c on Oracle Linux 8.3 (DB Build Part 2)
How to install Camunda Modeler on Manjaro Linux
How to build Java environment on Ubuntu (Linux)
Install mecab on Marvericks
Install Tensorflow on Mac
Install TensorFlow on Ubuntu
Install python on WSL