no Java plugin for Firefox with sun-java-6 installed in Hardy alpha 6

Bug #201143 reported by supercompman
10
Affects Status Importance Assigned to Milestone
sun-java6 (Ubuntu)
Confirmed
Undecided
Unassigned
Nominated for Hardy by supercompman

Bug Description

When installing Java 6 in Hardy alpha 6, the browser plugin is not installed properly. I have sun-java-6 installed and all related packages except docs. When I go to a page in Firefox that uses the Java plugin, I receive a prompt asking to install an available plugin - I select "The Java(TM) Plug-in, Java SE 6" and click Next. Then I receive prompt saying "Package 'sun-java6-plugin' is already installed". After clicking finish, closing the browser and reopening Firefox, the plugin is still not installed properly. I've also run "sudo update-java-alternatives -s sun-java-6" and one message I receive is "No alternatives for firefox-plugins-javaplugin.so".

Revision history for this message
Michele Mattioni (mattions) wrote :

It happens also here

Revision history for this message
Alex Mayorga (alex-mayorga) wrote :

I also have this problem.

Changed in sun-java6:
status: New → Confirmed
Revision history for this message
Alex Mayorga (alex-mayorga) wrote :

OK, I figured this one out finally, looks like under firefox 3 plugins a symlink is missing.

What worked for me:
alex-mayorga@inspiron-1501:/usr/lib/firefox-3.0b3/plugins$ sudo ln -s /usr/lib/jvm/java-6-sun/jre/plugin/i386/ns7/libjavaplugin_oji.so

Before:
alex-mayorga@inspiron-1501:/usr/lib/firefox-3.0b3/plugins$ ls -la
total 8
drwxr-xr-x 2 root root 4096 2008-01-02 17:09 .
drwxr-xr-x 5 root root 4096 2008-01-17 22:55 ..

After:
alex-mayorga@inspiron-1501:/usr/lib/firefox-3.0b3/plugins$ ls -la
total 12
drwxr-xr-x 2 root root 4096 2008-03-13 16:29 .
drwxr-xr-x 5 root root 4096 2008-01-17 22:55 ..
lrwxrwxrwx 1 root root 64 2008-03-13 16:29 libjavaplugin_oji.so -> /usr/lib/jvm/java-6-sun/jre/plugin/i386/ns7/libjavaplugin_oji.so

Looks like the Java plugin is not symlinked under Firefox 3.

Revision history for this message
exactt (giesbert) wrote :

just experienced the problem here myself.

the above fix works.

Revision history for this message
Adrian Hayter (adrianhayter) wrote :

Still a problem with Firefox 3 Beta 4. The above fix works though.

Also worthy to note that the Java plugin is installed to /usr/lib/firefox/plugins/ but Firefox doesn't seem to check that location. Probably will when the stable version is released.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.