5/18/2023 0 Comments Yum install java 11export JAVA_HOME=/usr/java/jdk-16.0.2/ export PATH=$PATH:$JAVA_HOME We can easily set the environment variables using the export command as shown below. For another version go there For example: You can download JDK 11 like this wget -no-cookies -no-check-certificate -header "Cookie: gpw_e24=http%3A%2F%2Foraclelicense=accept-securebackup-cookie" " "Įxtract Jdk 16 rpm -ivh jdk-16.0.2_linux-圆4_bin.rpm Note: You can change this download link and install another version. Section 1 - Install Oracle Java JDK (version 1) cd ~/Downloads wget -no-cookies -no-check-certificate -header "Cookie: gpw_e24=http%3A%2F%2Foraclelicense=accept-securebackup-cookie" " " Note: Instead of 1.8.0 you can write your version If there are other versions you can remove them via this command yum remove java-1.8.0-openjdk or yum remove jdk-1.8.0 Then, check if any older JDK versions are installed in your system. ![]() ![]() Section 0 - Check and Remove old versions ![]() If you are already installed Java JDK and you want to update it, you can start from Section 0. On CentOs we need to install JDK for some programs like Ant, Maven and etc.
0 Comments
Leave a Reply. |