If you are new to Unixmen, you may want to subscribe : ![]()
![]()
![]()
![]()
|
18 January 2009
Posted in
Linux distributions -
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
If you have a Tip, tutorial, Idea or anything you want to share with unixmen readers, you can send it to : tips[a]unixmen.com or use our contact form Thanks.
Related Articles By Tags :
Related Articles By Tags:
-
2009-05-19 14:50:44 | newbie - I cannot get the Java installed

Hi,
I cannot get the Java installed. I had already installed Java, but is did not work, so I removed that, and tried to install it by using the information on this page. Here's what I got:
"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).
replace jre-6u13-linux-i586.rpm? [y]es, [n]o, [A]ll, [N]one, [r]ename: a
error: invalid response [a]
replace jre-6u13-linux-i586.rpm? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
inflating: jre-6u13-linux-i586.rpm
Preparing... ########################################### [100%]
package jre-1.6.0_13-fcs is already installed
Done.
[root@localhost java]# rpm -iv jre-6u13-linux-i586.rpm
Preparing packages for installation...
package jre-1.6.0_13-fcs is already installed
[root@localhost java]# "I had removed the previous Java installation (same release), as it did not work. Apparently I did not know how to remove all, what should I do? I really need the Java to work as there are several sites that I need to access that require working Java. I have earlier removed IcedTea, so as of now there is none working Java on my system. Please, help. I am a newbie, I have no clue what to do.
-
2009-05-19 14:58:50 | newbie - ....continuation to the above

I had removed the previous Java installation (same release), as it did not work. Apparently I did not know how to remove all, what should I do? I really need the Java to work as there are several sites that I need to access that require working Java. I have earlier removed IcedTea, so as of now there is none working Java on my system. Please, help. I am a newbie, I have no clue what to do.
-
2009-05-20 01:55:48 |Administrator| pirat9

check your install Java directory.
please post the output of :ls /usr/java
if this directry is empty , then download the java from http://javadl.sun.com/webapps/download/AutoDL? BundleId=29209
[root@localhost ~]# chmod +x jre-6u13-linux-i586-rpm.bin
You have new mail in /var/spool/mail/root
[root@localhost ~]# ./jre-6u13-linux-i586-rpm.bin
Sun Microsystems, Inc. Binary Code License Agreementfor the JAVA SE RUNTIME ENVIRONMENT (JRE) VERSION 6 and
JAVAFX RUNTIME VERSION 1now
check if java is installed with
java -version(you will see like this)
[root@localhost ~]# java -version
java version "1.6.0_0"
IcedTea6 1.3.1 (6b12-Fedora-EPEL-5) Runtime Environment (build 1.6.0_0-b12)
OpenJDK Client VM (build 1.6.0_0-b12, mixed mode)
now how to add java to your browser (firefox)
Create this :mkdir .mozilla/plugins
then
[root@localhost ~]# cd .mozilla/plugins/
[root@localhost plugins]# ls
[root@localhost plugins]# ln -s /usr/java/
default/ jre1.6.0_13/ latest/then
[root@localhost plugins]# ln -s /usr/java/latest/plugin/i386/ns7/ libjavaplugin_oji.so
[root@localhost plugins]# ls
libjavaplugin_oji.so
Now it should be working .
for any other question please post it on the forum . Thanks
-
2009-11-15 20:53:51 | lion

Can I ask a really newbie question?
You said:
"check your install Java directory"
how do I do that? What to type, and where?
"now how to add java to your browser (firefox)
Create this :"What should I create, and how? I mean if I want to add java to my browser?
Please help; I must admit that I need more or less copy-paste advice on these things, as Linux is really new to me. All advice is appreciated, no matter how small.
-
2009-11-16 09:10:07 | lion

Hi pirat9;
could you also help me on my issue, it would really help, as I am lost on the linux, and really have problems with that.
-
2009-07-05 19:11:58 | joel thomas - stops on preparing

Hey can you help me.
I do everything but some reason this happens.
-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-6u14-linux-i586.rpm
Preparing...then nothing happens
I can wait for ages but nothing happens.If you know whats wrong.
Can you email me at jojotomaz@yahoo.com
-
2009-11-16 08:56:11 |Administrator| pirat9

joel thomas
try to install from the bin file and not from the rpm
-
2009-11-16 12:51:32 | Pirat9

How to add java plugisn to your browser :
cd /usr/lib/mozilla/plugins
then ln -s /usr/java//jre/plugin/i386/ns7/ libjavaplugin_oji.so
Done
Please if didnt work. post in the forum your question with ls /usr/java and i will reply soon possible.
We are here to help you , never mind


Hi,
I cannot get the Java installed. I had already installed Java, but is did not work, so I removed that, and tried to install it by using the information on this page. Here's what I got:
"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).
replace jre-6u13-linux-i586.rpm? [y]es, [n]o, [A]ll, [N]one, [r]ename: a
error: invalid response [a]
replace jre-6u13-linux-i586.rpm? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
inflating: jre-6u13-linux-i586.rpm
Preparing... ########################################### [100%]
package jre-1.6.0_13-fcs is already installed
Done.
[root@localhost java]# rpm -iv jre-6u13-linux-i586.rpm
Preparing packages for installation...
package jre-1.6.0_13-fcs is already installed
[root@localhost java]# "
I had removed the previous Java installation (same release), as it did not work. Apparently I did not know how to remove all, what should I do? I really need the Java to work as there are several sites that I need to access that require working Java. I have earlier removed IcedTea, so as of now there is none working Java on my system. Please, help. I am a newbie, I have no clue what to do.