From Bashlinux
Revision as of 19:27, 31 October 2011 by Manpaz (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Install java system wide

Download the jre rpm file from Oracle website, then add java to alternatives as follow:

 alternatives --install /usr/bin/java java /usr/java/latest/bin/java 20000
 alternatives --install /usr/bin/javaws javaws /usr/java/latest/bin/javaws 20000
 alternatives --install /usr/lib/mozilla/plugins/ /usr/java/latest/lib/i386/ 20000

On 64-bit systems, replace the last command with:

 alternatives --install /usr/lib64/mozilla/plugins/ /usr/java/latest/lib/amd64/ 20000