1. First go to the official website to download the required JDK package
2. Unzip it to the opt directory
3. Edit the system environment variables with vim /etc/bashrc
4. Save and exit, enter java -version to test the installation is successful.