LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-13-2009, 09:31 PM   #1
Jerry Mcguire
Member
 
Registered: Jul 2009
Location: Hong Kong SAR
Distribution: RedHat, Fedora
Posts: 201

Rep: Reputation: 31
JRE not installed in Mozilla Firefox


Hi, wondering what I did wrong with the instructions. I've already picked the non-64 version of JRE. Still the verification at java.com says Java is not installed. Please kindly help.

[root@wnoa java]# pwd
/usr/java
[root@wnoa java]# rpm -iv jre-6u17-linux-i586.rpm
Preparing packages for installation...
jre-1.6.0_17-fcs
Unpacking JAR files...
rt.jar...
jsse.jar...
charsets.jar...
localedata.jar...
plugin.jar...
javaws.jar...
deploy.jar...
[root@wnoa java]# ll
total 78800
lrwxrwxrwx 1 root root 16 Dec 14 11:20 default -> /usr/java/latest
drwxr-xr-x 7 root root 4096 Dec 14 11:20 jre1.6.0_17
-rw-r--r-- 1 root root 19946083 Oct 11 20:21 jre-6u17-linux-amd64.rpm
-rw-r--r-- 1 root root 20569081 Oct 11 18:35 jre-6u17-linux-i586.rpm
-rwxr-xr-x 1 root root 20334234 Dec 14 10:23 jre-6u17-linux-i586-rpm.bin
-rwxr-xr-x 1 root root 19704844 Dec 14 11:03 jre-6u17-linux-x64-rpm.bin
lrwxrwxrwx 1 root root 21 Dec 14 11:20 latest -> /usr/java/jre1.6.0_17

...

[root@wnoa plugins]# pwd
/usr/lib/mozilla/plugins
[root@wnoa plugins]# ln -s /usr/java/jre1.6.0_17/plugin/i386/ns7/libjavaplugin_oji.so
[root@wnoa plugins]# ll
total 4
lrwxrwxrwx 1 root root 58 Dec 14 11:27 libjavaplugin_oji.so -> /usr/java/jre1.6.0_17/plugin/i386/ns7/libjavaplugin_oji.so
 
Old 12-14-2009, 12:28 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Do yourself a favor in the future and read the installation instructions before installing anything. If you don't have the instructions with the package, go to the distributors website in search of them.

From your post:
Quote:
-rw-r--r-- 1 root root 19946083 Oct 11 20:21 jre-6u17-linux-amd64.rpm
-rw-r--r-- 1 root root 20569081 Oct 11 18:35 jre-6u17-linux-i586.rpm
-rwxr-xr-x 1 root root 20334234 Dec 14 10:23 jre-6u17-linux-i586-rpm.bin
-rwxr-xr-x 1 root root 19704844 Dec 14 11:03 jre-6u17-linux-x64-rpm.bin
it seems you have three different packages on the same version of jfe: i586.rpm, x64.rpm, and amd64.rpm.

Installation instructions from http://plugindoc.mozdev.org/linux.html#Java
Quote:
Java Runtime Environment
Version: 1.4.2 or later
Supported
Supported
Java FAQ
Install Java Runtime Environment.
Make a symbolic link to libjavaplugin_oji.so in your Mozilla Plugins directory. Use the copy located in the plugin/i386/ns7 directory of JRE 5.0 or later, or plugin/i386/ns610-gcc32 if you are using JRE 1.4.2.
Do not copy the plugin to your plugins directory. If you do, Mozilla will crash any time you attempt to view a page containing a Java applet.
The instructions listed here are for the Sun Java Runtime Environment. Other Java Runtime Environments, such as those available from IBM and the Blackdown project, can also be used.
From the instructions, you just make a symlink from your ~/.mozilla/plugins directory to /usr/java/jre1.6.0_17/plugin/i586/ns7/libjavaplugin_oji.so. You made the symlink in /usr/lib/mozilla/plugins.

The symlink you created links to the i386 version, but the quote from you post doesn't list an i386 version. So, it suspect the link is a dud. Try making a new one to the i586 libjavaplugin, ln -s ~/.mozilla/plugins /usr/lib/mozilla/plugins/libjavaplugin_oji.so

Last edited by bigrigdriver; 12-14-2009 at 12:33 AM.
 
Old 12-14-2009, 04:38 AM   #3
Jerry Mcguire
Member
 
Registered: Jul 2009
Location: Hong Kong SAR
Distribution: RedHat, Fedora
Posts: 201

Original Poster
Rep: Reputation: 31
Please Teach me. I did the several times with the two downloadable versions from Java.com (not three), but still no luck.

http://java.com/en/download/help/5000010500.xml#rpm


# let me start again slowly with the first downloadable entry in Java.com

[root@wnoa java]# ll
total 19888
-rwxr-xr-x 1 root root 20334234 Dec 14 17:36 jre-6u17-linux-i586-rpm.bin

[root@wnoa java]# ./jre-6u17-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
... < more and more >

Unpacking...
Checksumming...
Extracting...
UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).
inflating: jre-6u17-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.

[root@wnoa java]# ll
total 40020
lrwxrwxrwx 1 root root 16 Dec 14 17:40 default -> /usr/java/latest
drwxr-xr-x 7 root root 4096 Dec 14 17:40 jre1.6.0_17
-rw-r--r-- 1 root root 20569081 Oct 11 18:35 jre-6u17-linux-i586.rpm
-rwxr-xr-x 1 root root 20334234 Dec 14 17:36 jre-6u17-linux-i586-rpm.bin
lrwxrwxrwx 1 root root 21 Dec 14 17:40 latest -> /usr/java/jre1.6.0_17

[root@wnoa java]# rpm -iv jre-6u17-linux-i586.rpm
Preparing packages for installation...
package jre-1.6.0_17-fcs.i586 is already installed

# as expected.

[root@wnoa java]# /usr/java/jre1.6.0_17/bin/java -version
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode, sharing)


# and according to bigrigdriver's quote...

[jerry@wnoa plugins]$ ll /home/jerry/.mozilla/plugins/libjavaplugin_oji.so
lrwxrwxrwx 1 jerry jerry 58 Dec 14 17:47 /home/jerry/.mozilla/plugins/libjavaplugin_oji.so -> /usr/java/jre1.6.0_17/plugin/i386/ns7/libjavaplugin_oji.so

# also I did these just in case

[jerry@wnoa plugins]$ ll /usr/lib/mozilla/plugins/libjavaplugin_oji.so
lrwxrwxrwx 1 root root 58 Dec 14 18:03 /usr/lib/mozilla/plugins/libjavaplugin_oji.so -> /usr/java/jre1.6.0_17/plugin/i386/ns7/libjavaplugin_oji.so

[jerry@wnoa plugins]$ ll /usr/lib64/mozilla/plugins/libjavaplugin_oji.so
lrwxrwxrwx 1 root root 58 Dec 14 18:03 /usr/lib64/mozilla/plugins/libjavaplugin_oji.so -> /usr/java/jre1.6.0_17/plugin/i386/ns7/libjavaplugin_oji.so

# no luck after reboot neither
#####

Some side-track and stupid questions that I've always wanted to ask:
- how come many applications installed on my RedHat have 2 versions? both i386 and x86_64?
- how to determine where an application is installed to?
e.g. I have /usr/bin/firefox and then
/usr/lib/firefox-3.0...
/usr/lib64/firefox-3.0...
which one is The firefox installation? How to know?
(all I did was 'yum update -y' every week)

Please teach me.
 
Old 12-14-2009, 05:19 AM   #4
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,883
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
su - yum install java-1.6.0-openjdk-plugin
http://www.fedorafaq.org/#java
 
Old 12-14-2009, 07:27 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Indeed!!!---always use the package manager if at all possible. My last JRE install was "pacman -S jre".
 
Old 12-14-2009, 08:19 PM   #6
Jerry Mcguire
Member
 
Registered: Jul 2009
Location: Hong Kong SAR
Distribution: RedHat, Fedora
Posts: 201

Original Poster
Rep: Reputation: 31
Thank you, craigevil and pixellany. I have 1.6.0 installed now.

[jerry@wnoa ~]$ java -version
java version "1.6.0"
OpenJDK Runtime Environment (build 1.6.0-b09)
OpenJDK 64-Bit Server VM (build 1.6.0-b09, mixed mode)

Mmmm, but where is the java plugin installed to? I need to make a link to the java plugin in the firefox plugin directory. Trust me that I have done my homework before asking questions.

Please help.

This is one of the things that newbies hate (and love) about package manager.
 
Old 12-15-2009, 12:01 AM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
My system (Arch) puts jre plugin here:
/opt/java/jre/plugin/i386/ns7/libjavaplugin_oji.so

and I make a link here:
/usr/lib/mozilla/plugins

You may need to search for java or jre to see where it is.....
 
Old 12-15-2009, 02:15 AM   #8
Jerry Mcguire
Member
 
Registered: Jul 2009
Location: Hong Kong SAR
Distribution: RedHat, Fedora
Posts: 201

Original Poster
Rep: Reputation: 31
there!
/usr/lib64/mozilla/plugins/

It works. Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
JRE installed but not detected in firefox marts SUSE / openSUSE 4 02-01-2006 04:43 PM
JRE in mozilla Nau Linux - Software 6 01-07-2006 02:24 PM
How to link JRE with Mozilla Firefox Jerel Linux - Software 10 07-24-2005 09:13 AM
mozilla firefox with JRE 1.5 hlp pls!!!! mlu Linux - Software 1 11-30-2004 06:29 PM
How do I Uninstall Firefox, Jre, jdk, Mozilla TSynergy Linux - Newbie 2 11-18-2004 05:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration