View previous topic :: View next topic |
Author |
Message |
Koxta Retired Dev
Joined: 19 Mar 2004 Posts: 204 Location: Warszawa
|
Posted: Sat Jul 08, 2006 3:14 pm Post subject: firefox doesn't use the java plugin anymore [SOLVED] |
|
|
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 |
|
|
idella4 Retired Dev
Joined: 09 Jun 2006 Posts: 1600 Location: Australia, Perth
|
Posted: Sat Jul 08, 2006 3:37 pm Post subject: |
|
|
firefox is generally tagged to mozilla, not netscape _________________ idella4@aus |
|
Back to top |
|
|
gruftie Apprentice
Joined: 24 Sep 2002 Posts: 184
|
Posted: Sat Jul 08, 2006 5:37 pm Post subject: |
|
|
same problem here...any ideas? |
|
Back to top |
|
|
Koxta Retired Dev
Joined: 19 Mar 2004 Posts: 204 Location: Warszawa
|
Posted: Sat Jul 08, 2006 10:55 pm Post subject: |
|
|
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 |
|
|
ozbird Apprentice
Joined: 21 Oct 2003 Posts: 187
|
Posted: Tue Jul 11, 2006 7:27 am Post subject: |
|
|
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 |
|
|
nichoj Retired Dev
Joined: 15 Aug 2005 Posts: 66
|
Posted: Tue Jul 11, 2006 10:01 pm Post subject: |
|
|
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 |
|
|
Koxta Retired Dev
Joined: 19 Mar 2004 Posts: 204 Location: Warszawa
|
Posted: Wed Jul 12, 2006 10:51 pm Post subject: firefox doesn't use the java plugin anymore [SOLVED] |
|
|
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 |
|
|
coriolan Apprentice
Joined: 21 Apr 2005 Posts: 273
|
Posted: Fri Jul 14, 2006 11:37 am Post subject: |
|
|
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 |
|
|
gami Apprentice
Joined: 02 Jun 2006 Posts: 297
|
Posted: Fri Jul 14, 2006 12:37 pm Post subject: |
|
|
Try re-emerging sun-jdk. |
|
Back to top |
|
|
coriolan Apprentice
Joined: 21 Apr 2005 Posts: 273
|
Posted: Fri Jul 14, 2006 12:42 pm Post subject: |
|
|
Yep, did that. No help there. |
|
Back to top |
|
|
gami Apprentice
Joined: 02 Jun 2006 Posts: 297
|
Posted: Fri Jul 14, 2006 1:13 pm Post subject: |
|
|
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 |
|
|
coriolan Apprentice
Joined: 21 Apr 2005 Posts: 273
|
Posted: Fri Jul 14, 2006 1:34 pm Post subject: |
|
|
Yes, I followed the upgrade guide, and now firefox has no Java. |
|
Back to top |
|
|
gami Apprentice
Joined: 02 Jun 2006 Posts: 297
|
Posted: Fri Jul 14, 2006 1:51 pm Post subject: |
|
|
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 |
|
|
coriolan Apprentice
Joined: 21 Apr 2005 Posts: 273
|
Posted: Fri Jul 14, 2006 2:03 pm Post subject: |
|
|
AMD64, but neither the blackdown nor sun-jre produce the plugin. |
|
Back to top |
|
|
gami Apprentice
Joined: 02 Jun 2006 Posts: 297
|
Posted: Fri Jul 14, 2006 2:06 pm Post subject: |
|
|
Do you have the "nsplugin" use flag set? |
|
Back to top |
|
|
coriolan Apprentice
Joined: 21 Apr 2005 Posts: 273
|
Posted: Fri Jul 14, 2006 3:00 pm Post subject: |
|
|
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 |
|
|
coriolan Apprentice
Joined: 21 Apr 2005 Posts: 273
|
Posted: Mon Jul 17, 2006 10:00 am Post subject: |
|
|
Hm, now my firefox crashes every time I go to a site with Java on it. |
|
Back to top |
|
|
alienjon Veteran
Joined: 09 Feb 2005 Posts: 1711
|
Posted: Wed Sep 20, 2006 8:49 pm Post subject: |
|
|
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 |
|
|
alienjon Veteran
Joined: 09 Feb 2005 Posts: 1711
|
Posted: Wed Sep 20, 2006 9:03 pm Post subject: |
|
|
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 |
|
|
fumoffu Apprentice
Joined: 25 Dec 2005 Posts: 179 Location: Somewhere between heaven and hell...
|
Posted: Thu Sep 21, 2006 5:35 pm Post subject: |
|
|
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 |
|
|
Pizon n00b
Joined: 04 Jan 2006 Posts: 8
|
Posted: Fri Sep 22, 2006 9:01 am Post subject: |
|
|
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 |
|
|
Pizon n00b
Joined: 04 Jan 2006 Posts: 8
|
Posted: Fri Sep 22, 2006 9:04 am Post subject: |
|
|
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 |
|
|
alienjon Veteran
Joined: 09 Feb 2005 Posts: 1711
|
Posted: Fri Sep 22, 2006 12:39 pm Post subject: |
|
|
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 |
|
|
fumoffu Apprentice
Joined: 25 Dec 2005 Posts: 179 Location: Somewhere between heaven and hell...
|
Posted: Fri Sep 22, 2006 2:08 pm Post subject: |
|
|
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! _________________ "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 |
|
|
|