A step-by-step guide to installing and upgrading Java on CentOS, Red Hat, and Fedora Linux
Click Here
Prerequisites
– A server running Linux – Root or sudo privileges – A working internet connection
Click Here
Steps:
1. Check the current Java version. 2. Download the Java package for your desired version. 3. Install the Java package. 4. Set the JAVA_HOME environment variable. 5. Verify the installed Java version.
Click Here
Tips :
Check the current Java version through below command. # java -version set the JAVA_HOME environment variable in your ~/.bashrc
Click Here
If you encounter any problems during the installation process, you can click below to see complete post for installation.
Click Here