Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
firefox doesn't use the java plugin anymore [SOLVED]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Koxta
Retired Dev
Retired Dev


Joined: 19 Mar 2004
Posts: 204
Location: Warszawa

PostPosted: Sat Jul 08, 2006 3:14 pm    Post subject: firefox doesn't use the java plugin anymore [SOLVED] Reply with quote

Hi! I've followed the java upgrade guide a few days ago (just when jdk 1.5.0.07 hit the portage tree) and since then I cannot manage firefox to use java plugin. Although the nsbrowser USE flag is enabled, I can't see any libjava* files in /usr/lib/netscape/plugins or /opt/netscape/plugins (by the way, I wonder where else does gentoo put browser plugins - isnt' two dirs way too much?). I can find some plugin versions under /opt/sun-jdk-1.5.0.07/jre/plugin/, but creating symlinks into the plugin dirs doesn't help. Here goes my configuration.

Root:

Code:
hell plugins # java-config-1 -L
[sun-jdk-1.4.2.12] "Sun JDK 1.4.2.12" (/etc/env.d/java/20sun-jdk-1.4.2.12) *


Code:
hell plugins # java-config-2 -L
1) Sun JDK 1.4.2.12 [sun-jdk-1.4] (/usr/share/java-config-2/vm/sun-jdk-1.4)
*) Sun JDK 1.5.0.07 [sun-jdk-1.5] (/usr/share/java-config-2/vm/sun-jdk-1.5)


Code:
hell plugins # java-config -L
1) Sun JDK 1.4.2.12 [sun-jdk-1.4] (/usr/share/java-config-2/vm/sun-jdk-1.4)
*) Sun JDK 1.5.0.07 [sun-jdk-1.5] (/usr/share/java-config-2/vm/sun-jdk-1.5)


Code:
hell ~ # java-check-environment
 * === Java Environment Checker ===
 * The purpose of this script is to check the sanity of your Java Environment.
 * We have significantly changed and improved the way Java is handled in many respects.
 * Please refer to http://www.gentoo.org/proj/en/java/java-upgrade.xml for details

 * Checking vm_environment_files ...                                                                                                                     [ ok ]
 * Checking user_settings ...
 * Running as root. Don't need to check user settings.                                                                                                   [ ok ]
 * Checking generation_1_system_vm ...                                                                                                                   [ ok ]
 * Java environment is sane. Congratulations!


User:

Code:
koxta@hell ~ $ java-config-1 -L
[sun-jdk-1.4.2.12] "Sun JDK 1.4.2.12" (/etc/env.d/java/20sun-jdk-1.4.2.12) *


Code:
koxta@hell ~ $ java-config-2 -L
1) Sun JDK 1.4.2.12 [sun-jdk-1.4] (/usr/share/java-config-2/vm/sun-jdk-1.4)
*) Sun JDK 1.5.0.07 [sun-jdk-1.5] (/usr/share/java-config-2/vm/sun-jdk-1.5)


Code:
koxta@hell ~ $ java-config -L
1) Sun JDK 1.4.2.12 [sun-jdk-1.4] (/usr/share/java-config-2/vm/sun-jdk-1.4)
*) Sun JDK 1.5.0.07 [sun-jdk-1.5] (/usr/share/java-config-2/vm/sun-jdk-1.5)


Code:
koxta@hell ~ $ java-check-environment
 * === Java Environment Checker ===
 * The purpose of this script is to check the sanity of your Java Environment.
 * We have significantly changed and improved the way Java is handled in many respects.
 * Please refer to http://www.gentoo.org/proj/en/java/java-upgrade.xml for details

 * Checking vm_environment_files ...                                                                                                                     [ ok ]
 * Checking user_settings ...                                                                                                                            [ ok ]
 * Checking generation_1_system_vm ...                                                                                                                   [ ok ]
 * Java environment is sane. Congratulations!


My emerge --info:

Code:
hell ~ # emerge --info
Portage 2.1-r1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16-gentoo-r11 i686)
=================================================================
System uname: 2.6.16-gentoo-r11 i686 Intel(R) Pentium(R) 4 CPU 3.40GHz
Gentoo Base System version 1.6.15
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-Os -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="pl_PL"
LC_ALL="pl_PL"
LINGUAS="pl"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aac aalib accessibility acpi alsa arts asf audiofile avi bash-completion berkdb bidi bitmap-fonts bonobo bzip2 cdinstall cdparanoia cdr cli crypt css cups curl dbus dga dlloader doc dri dvd dvdr dvdread eds emboss encode escreen esd exif expat fam fbcon ffmpeg firefox flac foomaticdb fortran ftp gcj gdbm gif gimpprint glut gmp gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal iconv idn ieee1394 imagemagick imlib ipv6 isdnlog jack java javascript jpeg jpeg2k kadu-modules kadu-voice kde lcms libg++ libwww lirc mad matroska md5sum mikmod mime mjpeg mmx mng mono motif mp3 mpeg ncurses nls nptl nsplugin nvidia objc odbc offensive ogg oggvorbis openal opengl oss pam pcre pda pdf pdflib perl png ppds pppd python qt qt3 qt4 quicktime readline real reflection ruby samba scanner sdl seamonkey session slang snmp sox spell spl sse sse2 ssl svg svga tcltk tcpd tetex thread tidy tiff timidity truetype truetype-fonts type1 type1-fonts udev usb v4l videos vim-with-x vorbis win32codecs wxwindows xine xml xml2 xmms xorg xpm xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_vmmouse kernel_linux linguas_pl lirc_devices_livedrive_midi userland_GNU video_cards_nvidia video_cards_nv video_cards_vesa video_cards_vga video_cards_vmware"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


Any ideas?

Best regards,
Jurek 'Koxta' Bartuszek
_________________
Willst du dich von etwas trennen
Dann musst du es verbrennen
Willst du es nie wiedersehen
Lass es schwimmen in Benzin!


Last edited by Koxta on Wed Jul 12, 2006 10:51 pm; edited 1 time in total
Back to top
View user's profile Send private message
idella4
Retired Dev
Retired Dev


Joined: 09 Jun 2006
Posts: 1600
Location: Australia, Perth

PostPosted: Sat Jul 08, 2006 3:37 pm    Post subject: Reply with quote

firefox is generally tagged to mozilla, not netscape
_________________
idella4@aus
Back to top
View user's profile Send private message
gruftie
Apprentice
Apprentice


Joined: 24 Sep 2002
Posts: 184

PostPosted: Sat Jul 08, 2006 5:37 pm    Post subject: Reply with quote

same problem here...any ideas?
Back to top
View user's profile Send private message
Koxta
Retired Dev
Retired Dev


Joined: 19 Mar 2004
Posts: 204
Location: Warszawa

PostPosted: Sat Jul 08, 2006 10:55 pm    Post subject: Reply with quote

Yeah, I know. However:

Code:
hell ~ # ls /opt/netscape/plugins/
flashplayer.xpt    mplayerplug-in-gmp.so   mplayerplug-in-qt.xpt  mplayerplug-in.so       mplayerplug-in.xpt
libflashplayer.so  mplayerplug-in-gmp.xpt  mplayerplug-in-rm.so   mplayerplug-in-wmp.so   nphelix.so
libNPSVG3.so       mplayerplug-in-qt.so    mplayerplug-in-rm.xpt  mplayerplug-in-wmp.xpt  nppdf.so


and all those plugins actually work under firefox.

Best regards,
Jurek 'Koxta' Bartuszek
_________________
Willst du dich von etwas trennen
Dann musst du es verbrennen
Willst du es nie wiedersehen
Lass es schwimmen in Benzin!
Back to top
View user's profile Send private message
ozbird
Apprentice
Apprentice


Joined: 21 Oct 2003
Posts: 185

PostPosted: Tue Jul 11, 2006 7:27 am    Post subject: Reply with quote

The Java plugins appear to be kept as symlinks in /usr/share/java-config-2/nsplugin rather than /opt/netscape/plugins; my /opt/netscape/plugins directory only has the Flash plugin.

In my case, I have plugins from both blackdown-jdk (1.4.2) and sun-jdk (1.5), but only the Blackdown plugin is listed in "about:plugins" (probably because it got loaded first, alphabetically.)
I suspect this is a bug in java-config; the Blackdown plugin should have been removed when I switched to the Sun VM?

Update: When I removed the symlink for the Blackdown plugin, the Sun plugin wasn't loaded by firefox - it might be a compatibility issue. I've put the symlink back in.

Update 2: The symlink is actually in /usr/lib/nsbrowser/plugins. Changing javaplugin.so to point to /usr/share/java-config-2/nsplugin/sun-jdk-1.5-javaplugin.so has now selected the Sun plugin.
Back to top
View user's profile Send private message
nichoj
Retired Dev
Retired Dev


Joined: 15 Aug 2005
Posts: 66

PostPosted: Tue Jul 11, 2006 10:01 pm    Post subject: Reply with quote

ozbird wrote:
Update: When I removed the symlink for the Blackdown plugin, the Sun plugin wasn't loaded by firefox - it might be a compatibility issue. I've put the symlink back in.

Update 2: The symlink is actually in /usr/lib/nsbrowser/plugins. Changing javaplugin.so to point to /usr/share/java-config-2/nsplugin/sun-jdk-1.5-javaplugin.so has now selected the Sun plugin.


You actually can use the java-nsplugin eselect module to manage the symlink.
_________________
Joshua Nichols
Gentoo/Ruby Developer
Back to top
View user's profile Send private message
Koxta
Retired Dev
Retired Dev


Joined: 19 Mar 2004
Posts: 204
Location: Warszawa

PostPosted: Wed Jul 12, 2006 10:51 pm    Post subject: firefox doesn't use the java plugin anymore [SOLVED] Reply with quote

Yup, the "eselect java-nsplugin" thing works fine! Thanks!

Best regards,
Jurek 'Koxta' Bartuszek
_________________
Willst du dich von etwas trennen
Dann musst du es verbrennen
Willst du es nie wiedersehen
Lass es schwimmen in Benzin!
Back to top
View user's profile Send private message
coriolan
Apprentice
Apprentice


Joined: 21 Apr 2005
Posts: 273

PostPosted: Fri Jul 14, 2006 11:37 am    Post subject: Reply with quote

When I use
Code:
# eselect java-nsplugin list
ls: /usr/share/java-config-2/nsplugin/*-javaplugin.so: No such file or directory
Available Java browser plugins
Back to top
View user's profile Send private message
gami
Apprentice
Apprentice


Joined: 02 Jun 2006
Posts: 297

PostPosted: Fri Jul 14, 2006 12:37 pm    Post subject: Reply with quote

Try re-emerging sun-jdk.
Back to top
View user's profile Send private message
coriolan
Apprentice
Apprentice


Joined: 21 Apr 2005
Posts: 273

PostPosted: Fri Jul 14, 2006 12:42 pm    Post subject: Reply with quote

Yep, did that. No help there.
Back to top
View user's profile Send private message
gami
Apprentice
Apprentice


Joined: 02 Jun 2006
Posts: 297

PostPosted: Fri Jul 14, 2006 1:13 pm    Post subject: Reply with quote

Only works with the still package.masked latest versions of the java packages (should become stable shortly). See the Gentoo Java Upgrade Guide for details.
Back to top
View user's profile Send private message
coriolan
Apprentice
Apprentice


Joined: 21 Apr 2005
Posts: 273

PostPosted: Fri Jul 14, 2006 1:34 pm    Post subject: Reply with quote

Yes, I followed the upgrade guide, and now firefox has no Java.
Back to top
View user's profile Send private message
gami
Apprentice
Apprentice


Joined: 02 Jun 2006
Posts: 297

PostPosted: Fri Jul 14, 2006 1:51 pm    Post subject: Reply with quote

Which platform are you on? On amd64 the only plugin that works with firefox for me is the one from blackdown-jdk. On x86 the sun-jdks work fine.
Back to top
View user's profile Send private message
coriolan
Apprentice
Apprentice


Joined: 21 Apr 2005
Posts: 273

PostPosted: Fri Jul 14, 2006 2:03 pm    Post subject: Reply with quote

AMD64, but neither the blackdown nor sun-jre produce the plugin.
Back to top
View user's profile Send private message
gami
Apprentice
Apprentice


Joined: 02 Jun 2006
Posts: 297

PostPosted: Fri Jul 14, 2006 2:06 pm    Post subject: Reply with quote

Do you have the "nsplugin" use flag set?
Back to top
View user's profile Send private message
coriolan
Apprentice
Apprentice


Joined: 21 Apr 2005
Posts: 273

PostPosted: Fri Jul 14, 2006 3:00 pm    Post subject: Reply with quote

Ah, I added:
Code:
dev-java/blackdown-jre nsplugin

to /etc/portage/package.use and now it works again. Again, meaning that it worked before without nsplugin flag.
Back to top
View user's profile Send private message
coriolan
Apprentice
Apprentice


Joined: 21 Apr 2005
Posts: 273

PostPosted: Mon Jul 17, 2006 10:00 am    Post subject: Reply with quote

Hm, now my firefox crashes every time I go to a site with Java on it.
Back to top
View user's profile Send private message
alienjon
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1709

PostPosted: Wed Sep 20, 2006 8:49 pm    Post subject: Reply with quote

I'm trying to get firefox to use sun-jre or sun-jdk (I'm not sure if one is better for a plugin over the other) I do NOT want to use blackdown. I've followed the java-upgrade guide and currently only have Sun packages installed. Firefox still seems to be trying to use blackdown, though (As I had it installed a while ago):

From about:plugins wrote:

ð#V÷ð#V÷ Plug-in Blackdown-1.4.2-03

File name: libjavaplugin.so
Blackdown Java-Linux Java(TM) Plug-in 1.4.2


The reason the beginning of that is garbled is because I had tried to manually move the nsplugin it was using (Don't worry, I made a backup so it should be fine) but the plugin now points to a sun library:

Code:

lrwxrwxrwx 1 root root     29 Sep 20 14:27 libjavaplugin_oji.so -> ../netscape4/libjavaplugin.so


I've tried several different files manually (not to mention that I have used BOTH eselect and java-config to set the system java vm) but to no avail.

**update**

As a note, I just tried this all with seamonkey (which doesn't even read to have java installed or enabled in the first place (as a side note, I do hava java and nsplugins enabled system-wide (except for blackdown, but as I've mentioned that isn't installed anymore). When I run seamonkey, having set the following link:

In my /opt/firefox/plugins/ directory:

libjavaplugin_oji.so -> /opt/sun-jdk-1.4.2.12/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so


I get the following error:

Code:

LoadPlugin: failed to initialize shared library /opt/sun-jre-bin-1.4.2.12/plugin/i386/ns610-gcc32/libjavaplugin_oji.so [/opt/sun-jre-bin-1.4.2.12/plugin/i386/ns610-gcc32/libjavaplugin_oji.so: wrong ELF class: ELFCLASS32]
LoadPlugin: failed to initialize shared library /opt/sun-jre-bin-1.4.2.12/plugin/i386/ns610-gcc32/libjavaplugin_oji.so [/opt/sun-jre-bin-1.4.2.12/plugin/i386/ns610-gcc32/libjavaplugin_oji.so: wrong ELF class: ELFCLASS32]
LoadPlugin: failed to initialize shared library /opt/sun-jre-bin-1.4.2.12/plugin/i386/ns610-gcc32/libjavaplugin_oji.so [/opt/sun-jre-bin-1.4.2.12/plugin/i386/ns610-gcc32/libjavaplugin_oji.so: wrong ELF class: ELFCLASS32]
LoadPlugin: failed to initialize shared library /opt/sun-jre-bin-1.4.2.12/plugin/i386/ns610-gcc32/libjavaplugin_oji.so [/opt/sun-jre-bin-1.4.2.12/plugin/i386/ns610-gcc32/libjavaplugin_oji.so: wrong ELF class: ELFCLASS32]
Back to top
View user's profile Send private message
alienjon
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1709

PostPosted: Wed Sep 20, 2006 9:03 pm    Post subject: Reply with quote

Sorry for all of the "I did em all in about a half-hour" posts, but I think I figured it out. The directory that I needed to put the link in was:

Code:

/opt/netscape/plugins

# and not

/opt/firefox/plugins


Firefox seems to make sense, but I guess the browser directory is all messed up. Is there any formal writeup about where the various directory locations for browsers are (like, where the cache is kept, where the plugins are kept, where extensions are kept, etc...) or for any program, for that matter?
Back to top
View user's profile Send private message
fumoffu
Apprentice
Apprentice


Joined: 25 Dec 2005
Posts: 179
Location: Somewhere between heaven and hell...

PostPosted: Thu Sep 21, 2006 5:35 pm    Post subject: Reply with quote

The eselect java-nsplugin does not work for me either (on amd64).
Code:

rolf@chii ~ $ eselect java-nsplugin list
Available 32-bit Java browser plugins
Available 64-bit Java browser plugins
  [1]   blackdown-jdk-1.4.2
rolf@chii ~ $ eselect java-nsplugin show
Current Java browser plugin
  (unset)                   
rolf@chii ~ $ eselect java-nsplugin set 1
!!! Error: Usage: set [32bit or 64bit] [nsplugin-vm]
exiting.


Never saw that errormessage before, but it also apperas while emerging blackdown-jdk. I got both, firefox, as well as firefox-bin installed.
_________________
"People said I should accept the world. Bullshit! I don't accept the world!"
- Richard Stallman

http://www.lastfm.de/user/penguin-guy
Back to top
View user's profile Send private message
Pizon
n00b
n00b


Joined: 04 Jan 2006
Posts: 8

PostPosted: Fri Sep 22, 2006 9:01 am    Post subject: Reply with quote

fumoffu wrote:
The eselect java-nsplugin does not work for me either (on amd64).
Code:

rolf@chii ~ $ eselect java-nsplugin list
Available 32-bit Java browser plugins
Available 64-bit Java browser plugins
  [1]   blackdown-jdk-1.4.2
rolf@chii ~ $ eselect java-nsplugin show
Current Java browser plugin
  (unset)                   
rolf@chii ~ $ eselect java-nsplugin set 1
!!! Error: Usage: set [32bit or 64bit] [nsplugin-vm]
exiting.


Never saw that errormessage before, but it also apperas while emerging blackdown-jdk. I got both, firefox, as well as firefox-bin installed.


I just stumbled across this thread because I was having the same problem. Actually the solution is quite simple:

Code:
eselect java-nsplugin list
will show you which plugin options you have available.

On my machine it is as follows:
Code:
root@minuteman ~ # eselect java-nsplugin list
Available 32-bit Java browser plugins
Available 64-bit Java browser plugins
  [1]   blackdown-jdk-1.4.2
  [2]   blackdown-jre-1.4.2

Code:
eselect java-nsplugin set 64bit 1
will set the actual plugin you wish to use.

I have the Sun JRE and JDK installed as well although they do not show up in the list for some reason and I am using AMD64 as well. For now the Blackdown plugin will suffice although I would like to enable the newer Sun plugin because it seems to be a bit more stable. I will deal with that later because now I must sleep.
Back to top
View user's profile Send private message
Pizon
n00b
n00b


Joined: 04 Jan 2006
Posts: 8

PostPosted: Fri Sep 22, 2006 9:04 am    Post subject: Reply with quote

Pizon wrote:


I have the Sun JRE and JDK installed as well although they do not show up in the list for some reason and I am using AMD64 as well. For now the Blackdown plugin will suffice although I would like to enable the newer Sun plugin because it seems to be a bit more stable. I will deal with that later because now I must sleep.


Ack...here I go replying to myself. There is no 64-bit plugin available with sun-jre-bin-1.5.0.08. I knew this already of course because I wrestled with this problem about a year ago when I first built the system. On my x86 laptop I was using the Sun plugin. If you watch the emerge carefully when you're installing either the 1.5.x Sun JRE or JDK you will notice a message flash by that there is no 64-bit plugin available. Now I shall sleep as I promised myself in the previous post.
Back to top
View user's profile Send private message
alienjon
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1709

PostPosted: Fri Sep 22, 2006 12:39 pm    Post subject: Reply with quote

I think that there is a 64-bit version of the gen-1 vm's. I say this because I'm also on an x86_64 system and haven't seen that message before. Maybe you have a 64 and a 32 bit version installed?
Back to top
View user's profile Send private message
fumoffu
Apprentice
Apprentice


Joined: 25 Dec 2005
Posts: 179
Location: Somewhere between heaven and hell...

PostPosted: Fri Sep 22, 2006 2:08 pm    Post subject: Reply with quote

Pizon wrote:
Code:
root@minuteman ~ # eselect java-nsplugin list
Available 32-bit Java browser plugins
Available 64-bit Java browser plugins
  [1]   blackdown-jdk-1.4.2
  [2]   blackdown-jre-1.4.2

Code:
eselect java-nsplugin set 64bit 1

That did the job! Thanks! :D
_________________
"People said I should accept the world. Bullshit! I don't accept the world!"
- Richard Stallman

http://www.lastfm.de/user/penguin-guy
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum