Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora Resources > Guides & Solutions (No Questions)
FedoraForum Search

Forgot Password? Join Us!

Guides & Solutions (No Questions) Post your guides here (No links to Blogs accepted). You can also append your comments/questions to a guide, but don't start a new thread to ask a question. Use another forum for that.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 19th December 2004, 11:53 AM
imdeemvp's Avatar
imdeemvp Offline
Registered User
 
Join Date: Feb 2004
Age: 44
Posts: 8,256
How to install JAVA in FC3.

I did an installation on a second pc. I had such a headache installing JAVA after I ran all the updates. Many threads point to this download site. Which I think is incorrect. The real download is here. You need to go to the LINUX RPM (self-stracting file) and click on the YELOW download button to begin your donwload.

Go here for JAVA installation for FC 4 and 5 !!

UPDATE here is a new update for JAVA installation using the latest version jre-1_5_0_02 for FC3.
Once you download is done open the terminal and become root and type:
Code:
chmod a+x jre-1_5_0_02-linux-i586-rpm.bin
Code:
 sh jre-1_5_0_02-linux-i586-rpm.bin
or you can use this other command:
Code:
./jre-1_5_0_02-linux-i586-rpm.bin
Press ENTER untill you get to the license agreement and you will be prompted to type yes or no, type "yes". Here is the example:
Quote:
For inquiries please contact: Sun Microsystems, Inc., 4150
Network Circle, Santa Clara, California 95054, U.S.A.
(LFI#141496/Form ID#011801)

Do you agree to the above license terms? [yes or no]
You will get this result:
Unpacking...
Checksumming...
0
0
Extracting...
UnZipSFX 5.42 of 14 January 2001, by Info-ZIP (Zip-Bugs@lists.wku.edu).
inflating: jre-1_5_0_02-linux-i586.rpm
Preparing... ########################################### [100%]
1:jre ########################################### [100%]

Done.
Now install or update to latest:
Code:
rpm -Uvh jre-1_5_0_02-linux-i586.rpm
Preparing... ########################################### [100%]
Done.

Create link to the plugins folder:
Code:
cd /usr/lib/mozilla/plugins
Code:
 ln -s /usr/java/jre1.5.0_02/plugin/i386/ns7/libjavaplugin_oji.so
AND you are done. You can check here to see if you JAVA works. Also try the SunJava test. You can also follow this how to from fedoranews.org That is where I found the incorrect links. And to be honest I did not do any extra tweaks to make it work.

Keep in mind that the version may change so check your version when creating your link . Intended for newbies. Lets not make hard on them. I AM ALSO ATTACHING THE PROCESS I DID IN THE TERMINAL.
Attached Files
File Type: doc JAVA.doc (32.3 KB, 648 views)
__________________
HELP with JAVA, MP3's, Wireless, Repo's, YUM, Partitions, System Monitors, Nvidia, ATI drivers, LIMEWIRE PRO & MORE!.

Easiest and most friendly desktop ever is PCLinuxOS! Includes all this apps. Just try it.

"The greater the struggle THE greater the achievment."

Do you know HIM?

If you are an idiot click here. NThis will test you linux skills :D

Last edited by imdeemvp; 22nd April 2006 at 09:00 AM.
Reply With Quote
  #2  
Old 19th December 2004, 04:47 PM
F for Fragging Offline
Registered User
 
Join Date: Dec 2004
Location: The Netherlands
Posts: 25
Thank you

Thank you. The method to install Java which is described on fedorafaq.org didn't work for me, Firefox would kill itself when it loaded a site with Java then. Downloading the RPM you linked to did work.

However, when I wanted to test if it worked, Firefox didn't want to autodownload the plugin. This method: http://stanton-finley.net/fedora_cor...otes.html#Java got the plugin working for me. After the RPM was installed all I did was:

su -
ln -s /usr/java/j2re1.4.2_06/plugin/i386/ns610-gcc32/libjavaplugin_oji.so /usr/lib/mozilla/plugins/libjavaplugin_oji.so
Reply With Quote
  #3  
Old 19th December 2004, 05:07 PM
Brian1's Avatar
Brian1 Offline
Registered User
 
Join Date: Nov 2004
Location: Seymour, Indiana
Posts: 2,511
Try the other plugin. Depending on which version release of firefox depends on which plugin to use. To complicated to explain here. Lots of info on the net. Also install the jre-1.50 rpm version. I use the /i386/ns7 plugin with the version of firefox I have compiled.
Reply With Quote
  #4  
Old 19th December 2004, 09:26 PM
imdeemvp's Avatar
imdeemvp Offline
Registered User
 
Join Date: Feb 2004
Age: 44
Posts: 8,256
F for Fragging, I did not need to copy the plugin at all. But thanks for pointing that out. It may be helpful to others.
__________________
HELP with JAVA, MP3's, Wireless, Repo's, YUM, Partitions, System Monitors, Nvidia, ATI drivers, LIMEWIRE PRO & MORE!.

Easiest and most friendly desktop ever is PCLinuxOS! Includes all this apps. Just try it.

"The greater the struggle THE greater the achievment."

Do you know HIM?

If you are an idiot click here. NThis will test you linux skills :D
Reply With Quote
  #5  
Old 20th December 2004, 09:23 PM
smx Offline
Registered User
 
Join Date: Dec 2004
Posts: 28
It will not work for me, I installed everything without error even with root and I still get nothing when loading firefox...
Reply With Quote
  #6  
Old 20th December 2004, 11:34 PM
imdeemvp's Avatar
imdeemvp Offline
Registered User
 
Join Date: Feb 2004
Age: 44
Posts: 8,256
You may need to do this:
Quote:
su -
ln -s /usr/java/j2re1.4.2_06/plugin/i386/ns610-gcc32/libjavaplugin_oji.so /usr/lib/mozilla/plugins/libjavaplugin_oji.so
__________________
HELP with JAVA, MP3's, Wireless, Repo's, YUM, Partitions, System Monitors, Nvidia, ATI drivers, LIMEWIRE PRO & MORE!.

Easiest and most friendly desktop ever is PCLinuxOS! Includes all this apps. Just try it.

"The greater the struggle THE greater the achievment."

Do you know HIM?

If you are an idiot click here. NThis will test you linux skills :D
Reply With Quote
  #7  
Old 21st December 2004, 04:46 PM
BandC's Avatar
BandC Offline
Registered User
 
Join Date: Nov 2004
Posts: 1,105
I tried to install the J2SDK instead of the J2RE using the instructions from the Java site and Stan Finley. It didn't work at first. Then, I realized you must replace everything in the instructions (folder names, file names, etc.) that refers to J2RE with J2SDK. Pretty obvious in the aftermath but if you're a newbie like me, keep that in mind if you're installing the SDK instead. Just wanted to share...
Reply With Quote
  #8  
Old 21st December 2004, 10:29 PM
smx Offline
Registered User
 
Join Date: Dec 2004
Posts: 28
Well I tried it but now any internet page that has java on it closes firefox... plz help!
Reply With Quote
  #9  
Old 22nd December 2004, 12:14 AM
taylor65 Offline
Registered User
 
Join Date: Jan 2004
Posts: 806
Use synaptic to install java. the package name is mozilla-j2re, works perfectly with Firefox.
Reply With Quote
  #10  
Old 22nd December 2004, 12:28 AM
xalphas Offline
Registered User
 
Join Date: Dec 2004
Posts: 25
yes i think the best method. first yum install apt and synaptic. then better install java with synaptic automatically solves the plugin for firefox. cause before i tried the first method bin+rpm+so plugin, i entered a test site with java and firefox closed itself whenever i try to enter a java site. then i remove java and installed using synaptic firefox become available to open java pages. this is my java adventure. so i prefer using synaptic.
Reply With Quote
  #11  
Old 22nd December 2004, 12:17 PM
Loptr's Avatar
Loptr Offline
Registered User
 
Join Date: Oct 2004
Location: Nangijala
Posts: 10
Question

Quote:
Originally Posted by Brian1
Try the other plugin. Depending on which version release of firefox depends on which plugin to use. To complicated to explain here. Lots of info on the net. Also install the jre-1.50 rpm version. I use the /i386/ns7 plugin with the version of firefox I have compiled.
Where do you find that version? The only one I find available as rpm on java.com is j2re-1_4_2_06 ..
An URL would be nice.
__________________
There is chaos in the hearts of little children.
As the machine grows the chaos dies.
Reply With Quote
  #12  
Old 25th December 2004, 03:05 PM
les@glsi.us Offline
Registered User
 
Join Date: Jun 2004
Posts: 14
If you are installing java just for the jre/plugin, the above is OK.
However, if you are installing java to do anything serious, I suggest that you go to www.jpackage.org. Invest a few minutes in understanding and then use yum to install the desired bits.
jPackage provides a rational structure for Java. Once you you actually begin to DO something you will have LOTS of jars, etc. to keep track of and you WILL experience PAIN unless you have such a structure. You may want to re-invent this particular wheel ;-) If so, reading and understanding what the jpackage team has done is still worthwhile.
__________________
Les Dunaway
"Life is like a sled-dog race, if you ain't the lead dog, the view don't change much" Lewis Girzzard
Reply With Quote
  #13  
Old 25th December 2004, 09:06 PM
imdeemvp's Avatar
imdeemvp Offline
Registered User
 
Join Date: Feb 2004
Age: 44
Posts: 8,256
Quote:
then use yum to install the desired bits.
Thank you, I know the commad to use yum but I wll let you post it. That way your post will be complete.
__________________
HELP with JAVA, MP3's, Wireless, Repo's, YUM, Partitions, System Monitors, Nvidia, ATI drivers, LIMEWIRE PRO & MORE!.

Easiest and most friendly desktop ever is PCLinuxOS! Includes all this apps. Just try it.

"The greater the struggle THE greater the achievment."

Do you know HIM?

If you are an idiot click here. NThis will test you linux skills :D
Reply With Quote
  #14  
Old 26th December 2004, 01:20 AM
les@glsi.us Offline
Registered User
 
Join Date: Jun 2004
Posts: 14
Thanks, I realized afterwards that I'd failed to give details.

There's two parts - using yum and configuring yum
The first part is simply "yum install <package>..." and then as needed "yum update <package>".
If you are new to yum, a few minutes reading at http://www.linux.duke.edu/projects/yum/ will be rewarding. Then, browse jpackage.org for the packages you need.

Configuring /etc/yum.conf is important, which you will understand after having read (above). The gotcha in using jpackage is that other repositories may have java stuff in them. Be sure to exclude all your java packages from the other repository entries in /etc/yum.conf.

Here's an example:
[base]
exclude=ant,bcel,commons-*,jaf,jakarta-regexp,javamail,junit*,mod_jk*,mysql-jdbc,mx4j,servletapi,tomcat,tomcat*,xalan-j,xerces-j

name=Fedora Core $releasever - $basearch - Base
baseurl=http://mirror.hiwaay.net/redhat/fedora/linux/core/$releasever/$basearch/os
http://rpmfind.net/linux/fedora/core/$releasever/$basearch/os
http://mirror.clarkson.edu/pub/distributions/fedora/linux/core/$releasever/$basearch/os
http://mirrors.usc.edu/pub/linux/fedora/fedora/fedora/$releasever/$basearch/RPMS.os
http://fedora.redhat.com/releases/fedora-core-$releasever
__________________
Les Dunaway
"Life is like a sled-dog race, if you ain't the lead dog, the view don't change much" Lewis Girzzard
Reply With Quote
  #15  
Old 4th January 2005, 07:03 PM
stuffie Offline
Registered User
 
Join Date: Jan 2005
Posts: 6
You also have to install:

xorg-x11-deprecated-libs

otherwise firefox will still crash!!
Reply With Quote
Reply

Tags
fc3, install, java

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with Java install louiss3000 Using Fedora 2 19th September 2008 08:32 PM
install java 6 ihas_abdel Using Fedora 2 20th September 2007 01:22 PM
Java install help please. Xii Using Fedora 0 15th September 2006 08:07 AM
Java problem in fc4 (used install guide to install it) diamond Using Fedora 0 3rd November 2005 07:04 AM
How to NOT install java...? doobie Installation and Live Media 3 17th June 2005 08:09 PM


Current GMT-time: 04:20 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat