Java & CentOS 6.3

From DISI
Revision as of 11:24, 30 June 2016 by Benrwong (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

On the desktop you want to install it on as root:

cp /nfs/software/desktop/Centos_6.3/jdk-7u25-linux-x64.rpm /etc/yum.repos.d/
cp /nfs/software/desktop/Centos_6.3/jre-7u25-linux-x64.rpm /etc/yum.repos.d/
rpm -Uvh /etc/yum.repos.d/jdk-7u25-linux-x64.rpm
rpm -Uvh /etc/yum.repos.d/jre-7u25-linux-x64.rpm
alternatives --install /usr/bin/java java /usr/java/latest/jre/bin/java 20000
alternatives --config java  ---> To make sure it says that it’s the latest java
alternatives --install /usr/bin/javac javac /usr/java/jdk1.7.0_25/bin/javac 20000
alternatives --install /usr/bin/javaws javaws /usr/java/jre1.7.0_25/bin/javaws 20000
init 6