 |
 |
 |
 |
| 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. |

19th December 2004, 11:53 AM
|
 |
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.
Last edited by imdeemvp; 22nd April 2006 at 09:00 AM.
|

19th December 2004, 04:47 PM
|
|
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
|

19th December 2004, 05:07 PM
|
 |
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.
|

19th December 2004, 09:26 PM
|
 |
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.
|

20th December 2004, 09:23 PM
|
|
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...
|

20th December 2004, 11:34 PM
|
 |
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
|
|

21st December 2004, 04:46 PM
|
 |
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...
|

21st December 2004, 10:29 PM
|
|
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!
|

22nd December 2004, 12:14 AM
|
|
Registered User
|
|
Join Date: Jan 2004
Posts: 806

|
|
|
Use synaptic to install java. the package name is mozilla-j2re, works perfectly with Firefox.
|

22nd December 2004, 12:28 AM
|
|
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.
|

22nd December 2004, 12:17 PM
|
 |
Registered User
|
|
Join Date: Oct 2004
Location: Nangijala
Posts: 10

|
|
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.
|

25th December 2004, 03:05 PM
|
|
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
|

25th December 2004, 09:06 PM
|
 |
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.
|

26th December 2004, 01:20 AM
|
|
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
|

4th January 2005, 07:03 PM
|
|
Registered User
|
|
Join Date: Jan 2005
Posts: 6

|
|
|
You also have to install:
xorg-x11-deprecated-libs
otherwise firefox will still crash!!
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 04:20 (Thursday, 23-05-2013)
|
|
 |
 |
 |
 |
|
|