Adding Java to alternatives

I’d downloaded jre-1.7_79 from, and therefore, wanted to ensure my system was allowed to use this as part of alternatives, without having to do everything manually.  It’s nice and easy, all you have to do is:

alternatives–install /usr/bin/java java /usr/java/jre1.7._79/bin/java 3

this then adds java to position three within alternatives.  The reason I did this, was because position 1 and 2 was already taken by jre-1.5.0-gcj and jre-1.6.0 that comes pre-installed on RHEL 6.5.  After you’ve added it to the alternatives, you then need to activate it if you wish to use this version, so:

update-alternatives –config java

and then choose position 3 to use the version you’ve just installed.  When you then run:

java -version

from the command prompt, it will or should show the version you’ve just installed and added to alternatives.

Solaris /etc/system file modification for Oracle Install

set noexec_user_stack=1
set pcie:pcie_aer_ce_mask=0x1
set ip:do_tcp_fusion=0x0
set shmsys:shminfo_shmmax=8267108864
set shmsys:shminfo_shmmin=1
set shmsys:shminfo_shmmni=2048
set shmsys:shminfo_shmseg=2048
set semsys:seminfo_semaem=16384
set semsys:seminfo_semmap=1024
set semsys:seminfo_semmni=1024
set semsys:seminfo_semmns=8048
set semsys:seminfo_semmnu=1024
set semsys:seminfo_semopm=1024
set semsys:seminfo_semume=1024
set semsys:seminfo_semusz=1024
set semsys:seminfo_semvmx=32767
forceload: sys/semsys
forceload: sys/shmsys