Bug 384641

Summary: Java plugin does not work
Product: [Fedora] Fedora Reporter: petrosyan
Component: java-1.7.0-icedteaAssignee: Lillian Angel <langel>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 8CC: mzotyoka
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-11-21 16:23:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description petrosyan 2007-11-15 14:27:17 UTC
Description of problem:
This is a freshly installed Fedora 8 with all updates installed.
java-1.7.0-icedtea-plugin and its dependencies.

typing about:plugins in Firefox does not show any Java plugins.

Version-Release number of selected component (if applicable):
java-1.7.0-icedtea-plugin-1.7.0.0-0.19.b21.snapshot.fc8

How reproducible:
Always

Steps to Reproduce:
1. Install Fedora 8, x86_64 and all its updates
2. Install java-1.7.0-icedtea-plugin
3. Start Firefox and type "about:plugins"
  
Actual results:
Java plugin is not found.

Expected results:
Java plugin should be found.

Comment 1 Bill C. Riemers 2007-11-15 16:21:56 UTC

*** This bug has been marked as a duplicate of 379421 ***

Comment 2 Zoltán Magyar 2007-11-18 17:38:31 UTC
Running 'mozilla-plugin-config' solved the problem.

Comment 3 Lillian Angel 2007-11-19 20:54:55 UTC
I have tested this on a clean F8-final install on x86_64.

- java-1.7.0-icedtea.x86_64 is installed by default
- java-1.7.0-icedtea-plugin.x86_64 is installed by default
- firefox.x86_64 and firefox.i386 are both installed by default
- running firefox.x86_64 -> about:plugins shows the gcjwebplugin installed
- testing various Java applets works as expected

I did not run any updates etc or /usr/bin/mozilla-plugin-config. The IcedTea
browser plugin worked out of the box. 

Can you give me detailed steps to reproduce the problem you are seeing? Were you
attempting to install Sun's Java plugin?

Comment 4 petrosyan 2007-11-19 21:15:52 UTC
Many people use LiveCD, LiveDVD or LiveUSB to install Fedora 8. So here are the
steps.

1. Install Fedora 8 for x86_64 from a LiveDVD on x86_64.
2. In case of any "Live" installation you cannot select or deselect any
packages. Java by default is NOT installed.
3. Install java-1.7.0-icedtea-plugin manually (yum install
java-1.7.0-icedtea-plugin).
4. Start Firefox. -> about:plugins shows NO Java plugins
5. close Firefox. run 'mozilla-plugin-config' and start Firefox again.
6. about:plugins shows the gcjwebplugin installed

PS.
Firefox fails to install java plugin or at least give a hint about how to
install it from a repository. Shouldn't this be a bug? Why is Firefox failing
and then sending you to Sun's website, when there is a working java plugin in
Fedora repositories?

Comment 5 Thomas Fitzsimmons 2007-11-19 21:23:39 UTC
Try this instead:

yum install java-1.7.0-icedtea-plugin.x86_64


Comment 6 Thomas Fitzsimmons 2007-11-19 21:28:56 UTC
I should explain: "yum install java-1.7.0-icedtea-plugin" installs the i386
version of java-1.7.0-icedtea-plugin (/usr/lib/mozilla/plugins/gcjwebplugin.so).
 mozilla-plugin-config wraps /usr/lib/mozilla/plugins/gcjwebplugin.so and makes
it available in /usr/lib64/mozilla/plugins/.

On x86_64, firefox.i386 and firefox.x86_64 are both installed, so
/usr/bin/firefox runs the 64-bit firefox binary, which reads from
/usr/lib64/mozilla/plugins/.  Meaning that, in order for /usr/bin/firefox to
find the plugin, either the mozilla-plugin-config-wrapped gcjwebplugin.so needs
to be there, or the java-1.7.0-icedtea-plugin.x86_64-provided gcjwebplugin.so
needs to be there.

This probably represents a bug in mash, since java-1.7.0-icedtea*.i386 shouldn't
be available to yum on an x86_64 installation.

Comment 7 Thomas Fitzsimmons 2007-11-19 21:31:18 UTC
(In reply to comment #4)

> PS.
> Firefox fails to install java plugin or at least give a hint about how to
> install it from a repository. Shouldn't this be a bug? Why is Firefox failing
> and then sending you to Sun's website, when there is a working java plugin in
> Fedora repositories?

Good point, Firefox plugin finder/yum integration would be nice to have.  Can
you file that as a separate enhancement request under the Firefox component?

Comment 8 petrosyan 2007-11-19 23:53:25 UTC
(In reply to comment #5)
> Try this instead:
> 
> yum install java-1.7.0-icedtea-plugin.x86_64
> 

yum install java-1.7.0-icedtea-plugin
actually installs java-1.7.0-icedtea-plugin.x86_64, and that's what I have been
using all along.

Comment 9 Lillian Angel 2007-11-20 15:10:47 UTC
I have tested this after a full "yum update" and still everything works. 

I will need to test this with a liveCD installation.

Comment 10 Lillian Angel 2007-11-20 18:23:51 UTC
I tested this with the F8-Live installation. This is only a problem when F8 is
installed Live on x86_64. By default, the plugin is only linked to
/usr/lib64/mozilla/plugins, whereas it should be linked in
/usr/lib64/mozilla/plugins-wrapped as well. This is why running
mozilla-plugin-config fixes the problem.

I will fix this in rawhide.

Comment 11 Lillian Angel 2007-11-21 16:23:14 UTC

*** This bug has been marked as a duplicate of 334311 ***