Thursday 23 February 2012

Howto install Java Runtime Environment in fedora and Linpus


To install  Java Runtime Environment in fedora or Linpus, please folow the instructions below.


First : Go to the link below and download the rpm package of java.

http://www.java.com/en/download/linux_manual.jsp?locale=en&host=www.java.com:80
then
open the terminal
su –
choose where you want to install the java , for me i choosed /usr/java
cd /usr/
create a new folder for java
mkdir java
go back to the directory where you downloaded java ,then copy the downloaded file to this directory(/usr/java) ,in my case :
cd /home/unixmen/Download

[root@zinovsky-fedora Download]# cp jre-6u11-linux-i586-rpm.bin /usr/java

then
[root@zinovsky-fedora Download]# cd /usr/java/
make the file executable :
[root@zinovsky-fedora java]# chmod a+x jre-6u11-linux-i586-rpm.bin
run installation :
[root@zinovsky-fedora java]# ./jre-6u11-linux-i586-rpm.bin
output:
[root@zinovsky-fedora java]# ./jre-6u11-linux-i586-rpm.bin
Sun Microsystems, Inc.  Binary Code License Agreement
for the JAVA SE RUNTIME ENVIRONMENT (JRE) VERSION 6 and
JAVAFX RUNTIME VERSION 1
SUN MICROSYSTEMS, INC.  (“SUN”) IS WILLING TO LICENSE THE
SOFTWARE IDENTIFIED BELOW TO YOU ONLY UPON THE CONDITION
THAT YOU ACCEPT ALL OF THE TERMS CONTAINED IN THIS BINARY
CODE LICENSE AGREEMENT AND SUPPLEMENTAL LICENSE TERMS
(COLLECTIVELY “AGREEMENT”).  PLEASE READ THE AGREEMENT
CAREFULLY.  BY DOWNLOADING OR INSTALLING THIS SOFTWARE, YOU
ACCEPT THE TERMS OF THE AGREEMENT.  INDICATE ACCEPTANCE BY
SELECTING THE “ACCEPT” BUTTON AT THE BOTTOM OF THE
AGREEMENT.  IF YOU ARE NOT WILLING TO BE BOUND BY ALL THE
TERMS, SELECT THE “DECLINE” BUTTON AT THE BOTTOM OF THE
AGREEMENT AND THE DOWNLOAD OR INSTALL PROCESS WILL NOT
CONTINUE.
1.  DEFINITIONS.  “Software” means the identified above in
binary form, any other machine readable materials
(including, but not limited to, libraries, source files,
header files, and data files), any updates or error
corrections provided by Sun, and any user manuals,
programming guides and other documentation provided to you
by Sun under this Agreement.  “General Purpose Desktop
…………….
…………..
………………….
………………
………………
Please enter “yes” or “no”.
Do you agree to the above license terms? [yes or no]
yes
Unpacking…
Checksumming…
Extracting…
UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).
inflating: jre-6u11-linux-i586.rpm
Preparing…                ########################################### [100%]
1:jre                    ########################################### [100%]
Unpacking JAR files…
rt.jar…
jsse.jar…
charsets.jar…
localedata.jar…
plugin.jar…
javaws.jar…
deploy.jar…
Done.

Then you have to run this command :

[root@zinovsky-fedora java]# rpm -iv  jre-6u11-linux-i586.rpm
then verify if java subfolder is in /usr/java
And is done :)
For more about configurating java on your firefox please visit :
http://www.java.com/en/download/help/5000010500.xml#100 

No comments:

Post a Comment