

( alternatives –config java command will let you choose the desired Java version if you have multiple versions installed in your system. We will be using “alternative” command to install and configure java, javac and jar cd /opt/jdk1.7.0_71/Īlternatives -install /usr/bin/java java /opt/jdk1.7.0_71/bin/java 2 Wget -no-cookies -no-check-certificate -header "Cookie: gpw_e24=http%3A%2F%2Foraclelicense=accept-securebackup-cookie" "" 2) Extract the archive fileįor 32 Bit : tar -xvf įor 64 Bit : tar -xvf jdk-7u71-linux-圆4.tar.gz 3 ) Install and configure Java, Javac and Jar Wget -no-cookies -no-check-certificate -header "Cookie: gpw_e24=http%3A%2F%2Foraclelicense=accept-securebackup-cookie" "" You can download latest Java 7 packages from here ( At the time of writing, the latest version is JDK 7u71, so we will be installing that version ) Note : If you want to install Java 8, follow the tutorial here 1) Download the Source Package Here are the easy steps to install Java in your CentOS/Fedora/RHEL system. But even they use to have issues while installing Java in Linux. There are developers who can do magics with Java.
