0% found this document useful (0 votes)
28 views

Sun/Oracle Java JRE 32-Bit/64-Bit RPM Packages: For Your Architecture (64bit or 32bit)

This document provides instructions for downloading and installing Sun/Oracle Java JRE on Linux systems. It describes downloading the appropriate 32-bit or 64-bit RPM package from Oracle's website, installing it as the root user, and configuring alternative paths so that Java, javaws, and the browser plugin are set as the default. Steps are also included to check the installed Java version and switch between OpenJDK and Sun/Oracle Java as needed.

Uploaded by

bonzong
Copyright
© © All Rights Reserved
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views

Sun/Oracle Java JRE 32-Bit/64-Bit RPM Packages: For Your Architecture (64bit or 32bit)

This document provides instructions for downloading and installing Sun/Oracle Java JRE on Linux systems. It describes downloading the appropriate 32-bit or 64-bit RPM package from Oracle's website, installing it as the root user, and configuring alternative paths so that Java, javaws, and the browser plugin are set as the default. Steps are also included to check the installed Java version and switch between OpenJDK and Sun/Oracle Java as needed.

Uploaded by

bonzong
Copyright
© © All Rights Reserved
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
You are on page 1/ 3

1. Download Sun/Oracle Java JRE 32-bit/64-bit RPM ac!

a"e#
Download Sun/Oracle Java 7u21 (or newer versions) from here: http://www.oracle.com/technetwor /!ava/!avase/downloads/inde".html. Select t$e ri"$t r % ac!a"e &or 'our arc$itecture (64bit or 32bit)

2. *$an"e to root u#er 3. +n#tall Java JRE r % ac!a"e


#"ecute one of the followin$ two commands% dependin$ on &our architecture:
## JRE 32-bit ## rpm -Uvh /path/to/binary/jre-7u21-linux-i58 !rpm or ## JRE "-bit ## rpm -Uvh /path/to/binary/jre-7u21-linux-x "!rpm

4. +n#tall Sun/Oracle JRE java, javaws and libjavaplugin.so (&or -ire&o./Mo/illa)


'lwa&s as the root user% e"ecute the followin$ four commands:
## java ## alternative# --in#tall /u#r/bin/java java /u#r/java/late#t/bin/java 2$$$$ ## java%# ## alternative# --in#tall /u#r/bin/java%# java%# /u#r/java/late#t/bin/java%# 2$$$$ ## Java &ro%#er '(o)illa* +lu,in 32-bit ## alternative# --in#tall /u#r/lib/mo)illa/plu,in#/libjavaplu,in!#o libjavaplu,in!#o /u#r/java/late#t/lib/i38 /libnpjp2!#o 2$$$$ ## Java &ro%#er '(o)illa* +lu,in "-bit ## alternative# --in#tall /u#r/lib "/mo)illa/plu,in#/libjavaplu,in!#o libjavaplu,in!#o!x8 - " /u#r/java/late#t/lib/am. "/libnpjp2!#o 2$$$$

0. *$ec! current 1ava and 1avaw# ver#ion#


#"ecute the followin$ commands to chec if Java has (een actuall& installed:
java -ver#ion

)he output should (e somethin$ li e:


java ver#ion /1!7!$-21/ Java'0(* 1E Runtime Environment 'buil. 1!7!$-21-b$"* Java 2ot1pot'0(* "-&it 1erver 3( 'buil. 22!1-b$24 mixe. mo.e*

java%#

)he output should (e somethin$ li e:


Java'0(* 5eb 1tart 1$!$!$!"-67# 8!!!9

6. Swa between O enJD2 and Sun/Oracle Java JRE


3ou can c$an"e t$e currentl' active Java virtual %ac$ine b' t' in"4
alternative# --7on6i, java

)he output should (e somethin$ li e:


0here are 5 pro,ram# %hi7h provi.e :java:! 1ele7tion ;omman. ----------------------------------------------< 1 /u#r/java/j.=1! !$-2"/jre/bin/java 2 /u#r/lib/jvm/jre-1!5!$-,7j/bin/java > 3 /u#r/java/j.=1! !$-2 /jre/bin/java " /u#r/lib/jvm/jre-1! !$-openj.=/bin/java 5 /u#r/java/j.=1!7!$-21/jre/bin/java Enter to =eep the 7urrent #ele7tion8>94 or type #ele7tion number? 5

5$e 1ava di#tribution indicated wit$ 678 i# t$e one currentl' in u#e. +n order to %odi&' t$i# #ettin" 'ou $ave to t' e t$e nu%ber corre# ondin" to t$e 1ava di#tribution 'ou want to #et a# de&ault and re## enter.

5$e #a%e $a# to be done &or 1avaw# and &or t$e brow#er lu"in#4 1avaw#
alternative# --7on6i, java%#

lib1ava lu"in.#o (32-bit)


alternative# --7on6i, libjavaplu,in!#o

lib1ava lu"in.#o..96:64 (64-bit)


alternative# --7on6i, libjavaplu,in!#o!x8 - "

You might also like