Difference between revisions of "Java"
From Bashlinux
(talk) |
|||
Line 2: | Line 2: | ||
= Java = |
= Java = |
||
− | == |
+ | == How to install java system wide on Linux == |
− | Download the |
+ | Download the JRE rpm file from Oracle website, then add java to alternatives as follow: |
Revision as of 15:32, 4 June 2012
Java
How to install java system wide on Linux
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/libjavaplugin.so libjavaplugin.so /usr/java/latest/lib/i386/libnpjp2.so 20000
On 64-bit systems, replace the last command with:
alternatives --install /usr/lib64/mozilla/plugins/libjavaplugin.so libjavaplugin.so.x86_64 /usr/java/latest/lib/amd64/libnpjp2.so 20000