Java 7 on RHEL with Alternatives
August 5, 2015
To install Java on RHEL, download it and unpack.
You can then use the alternatives command to add it as a new option for java, and switch to it:
[root@linux07 ~]# alternatives --install /usr/bin/java java /apps/jdk/jdk1.7.0_67/bin/java 3 [root@linux07 ~]# alternatives --config java There are 3 programs which provide 'java'. Selection …