Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't get Java working in Firefox
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
weijie90
n00b
n00b


Joined: 27 Aug 2005
Posts: 51

PostPosted: Fri Jul 03, 2009 1:47 am    Post subject: Can't get Java working in Firefox Reply with quote

Hi,

I'm using Firefox 3.5 and I can't view Java applets. This problem existed in Firefox 3.0 too.

Here's some info:

Code:
/.mozilla/plugins $ ls -al
total 9924
drwxr-x--x 2 di di     4096 Jul  3 09:40 .
drwx------ 6 di di     4096 Dec 12  2008 ..
lrwxrwxrwx 1 di di       67 Jul  3 09:36 javaplugin.so -> /usr/share/java-config-2/nsplugin/sun-jdk-1.6-plugin2-javaplugin.so
-rwxr-xr-x 1 di di 10131640 Jun 12 05:54 libflashplayer.so

/usr/lib/mozilla/plugins $ ls -al
total 16
drwxr-xr-x 2 root root 4096 Jul  3 09:42 .
drwxr-xr-x 4 root root 4096 Jul  3 08:59 ..
lrwxrwxrwx 1 root root   67 Jul  3 09:42 javaplugin.so -> /usr/share/java-config-2/nsplugin/sun-jdk-1.6-plugin2-javaplugin.so
lrwxrwxrwx 1 root root   67 Jul  3 09:42 sun-jdk-1.6-plugin2-javaplugin.so -> /usr/share/java-config-2/nsplugin/sun-jdk-1.6-plugin2-javaplugin.so

/usr/lib/mozilla-firefox/plugins $ ls -al
total 1732
drwxr-xr-x 2 root root   4096 Jul  3 09:41 .
drwxr-xr-x 3 root root   4096 Feb  9  2008 ..
lrwxrwxrwx 1 root root     67 Jul  3 09:41 javaplugin.so -> /usr/share/java-config-2/nsplugin/sun-jdk-1.6-plugin2-javaplugin.so
-rwxr-xr-x 1 root root 275216 Oct  9  2008 mplayerplug-in-dvx.so
-rw-r--r-- 1 root root   1067 Oct  9  2008 mplayerplug-in-dvx.xpt
-rwxr-xr-x 1 root root 275216 Oct  9  2008 mplayerplug-in-gmp.so
-rw-r--r-- 1 root root   1067 Oct  9  2008 mplayerplug-in-gmp.xpt
-rwxr-xr-x 1 root root 275216 Oct  9  2008 mplayerplug-in-qt.so
-rw-r--r-- 1 root root   1067 Oct  9  2008 mplayerplug-in-qt.xpt
-rwxr-xr-x 1 root root 275216 Oct  9  2008 mplayerplug-in-rm.so
-rw-r--r-- 1 root root   1067 Oct  9  2008 mplayerplug-in-rm.xpt
-rwxr-xr-x 1 root root 275216 Oct  9  2008 mplayerplug-in-wmp.so
-rw-r--r-- 1 root root   1067 Oct  9  2008 mplayerplug-in-wmp.xpt
-rwxr-xr-x 1 root root 275216 Oct  9  2008 mplayerplug-in.so
-rw-r--r-- 1 root root   1067 Oct  9  2008 mplayerplug-in.xpt
-rw-r--r-- 1 root root  38388 Jul  2 20:29 nsdejavu.so


$ java-config --list-available-vmsThe following VMs are available for generation-2:
1)      Sun JDK 1.4.2.19 [sun-jdk-1.4]
2)      Sun JDK 1.5.0.16 [sun-jdk-1.5]
*)      Sun JDK 1.6.0.14 [sun-jdk-1.6]
4)      Sun JRE 1.6.0.14 [sun-jre-bin-1.6]

$ sudo eselect java-nsplugin list
Available Java browser plugins
  [1]   sun-jdk-1.5
  [2]   sun-jdk-1.6
  [3]   sun-jdk-1.6-plugin2  current
  [4]   sun-jre-bin-1.6
  [5]   sun-jre-bin-1.6-plugin2

$ sudo emerge -av sun-jdk mozilla-firefox

 * IMPORTANT: 3 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.


These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] dev-java/sun-jdk-1.6.0.14  USE="X alsa nsplugin odbc -derby -doc -examples -jce" 0 kB
[ebuild   R   ] www-client/mozilla-firefox-3.5  USE="dbus java mozdevelop -bindist -custom-optimization -gnome -iceweasel -restrict-javascript -startup-notification" LINGUAS="en_GB zh_CN zh_TW -af -ar -as -be -bg -bn -bn_BD -bn_IN -ca -cs -cy -da -de -el -eo -es -es_AR -es_CL -es_ES -es_MX -et -eu -fa -fi -fr -fy -fy_NL -ga -ga_IE -gl -gu -gu_IN -he -hi -hi_IN -hr -hu -id -is -it -ja -ka -kk -kn -ko -ku -lt -lv -mk -ml -mn -mr -nb -nb_NO -nl -nn -nn_NO -oc -or -pa -pa_IN -pl -pt -pt_BR -pt_PT -rm -ro -ru -si -sk -sl -sq -sr -sv -sv_SE -ta -ta_LK -te -th -tr -uk -vi -zh" 0 kB


Any help will be greatly appreciated. T[/code]hank you!
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Mon Jul 06, 2009 2:38 pm    Post subject: Reply with quote

Can you post your emerge --info?
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
Nerevar
l33t
l33t


Joined: 31 May 2008
Posts: 720

PostPosted: Mon Jul 06, 2009 3:34 pm    Post subject: Reply with quote

Do you have the java use flag set for xulrunner?
Back to top
View user's profile Send private message
weijie90
n00b
n00b


Joined: 27 Aug 2005
Posts: 51

PostPosted: Mon Jul 06, 2009 8:34 pm    Post subject: Reply with quote

Nerevar wrote:
Do you have the java use flag set for xulrunner?


Yup-

Code:
[ebuild   R   ] net-libs/xulrunner-1.9.1  USE="dbus java python -custom-optimization -debug -gnome -startup-notification" 0 kB
Back to top
View user's profile Send private message
Nerevar
l33t
l33t


Joined: 31 May 2008
Posts: 720

PostPosted: Tue Jul 07, 2009 2:04 am    Post subject: Reply with quote

Then that should be everything you need. Make sure it's enabled in firefox (Preferences->Content->Enable Java) and you don't have any add-ons that are blocking applets.
Back to top
View user's profile Send private message
weijie90
n00b
n00b


Joined: 27 Aug 2005
Posts: 51

PostPosted: Tue Jul 07, 2009 2:22 am    Post subject: Reply with quote

That worked! I wish I knew that setting at first.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Tue Jul 07, 2009 12:55 pm    Post subject: Reply with quote

I usually put java in my use flags early on in the build of a system, which nips this problem in the bud.
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
region-g
Tux's lil' helper
Tux's lil' helper


Joined: 04 May 2005
Posts: 122
Location: Ελλάς

PostPosted: Wed Jul 08, 2009 2:22 am    Post subject: Reply with quote

Same here, furthermore i use the the very first make.conf i ever made, revised offcourse according to the given specs and needs =)
_________________
wanna react ?
Back to top
View user's profile Send private message
tgR10
Apprentice
Apprentice


Joined: 23 Oct 2007
Posts: 262
Location: caly ten ambaras

PostPosted: Wed Jul 08, 2009 4:24 am    Post subject: Reply with quote

do a symlink
Code:
ln -s /PATH-TO-JAVA/jre/plugin/i386/ns7/libjavaplugin_oji.so /PATH-TO-FIREFOX/plugins/libjavaplugin_oji.so

if folder plugins doesn't exists inside firefox create it and rerun command
change your path

you can use
Quote:
equery -f PACKAGE

to check where files are installed

works for me on ~x86 and ~x86_64, firefox 3 and 3.5, don't remember if i had to do it on 2.x , usualy the newest java development kit (dev-java/sun-jdk) ~arch
for now i got, lately i add custom-optimization, rest i used from begining, as far as i know and i think i know pretty well my system
Code:
[ebuild   R   ] net-libs/xulrunner-1.9.1  USE="custom-optimization dbus java python -debug -gnome -startup-notification" 0 kB
[ebuild   R   ] dev-java/sun-jdk-1.6.0.14  USE="X alsa nsplugin -derby -doc -examples -jce -odbc" 0 kB
[ebuild   R   ] www-client/mozilla-firefox-3.5-r2  USE="custom-optimization dbus java -bindist -gnome -iceweasel -mozdevelop -restrict-javascript -startup-notification" LINGUAS="pl -af -ar -as -be -bg -bn -bn_BD -bn_IN -ca -cs -cy -da -de -el -en -en_GB -en_US -eo -es -es_AR -es_CL -es_ES -es_MX -et -eu -fa -fi -fr -fy -fy_NL -ga -ga_IE -gl -gu -gu_IN -he -hi -hi_IN -hr -hu -id -is -it -ja -ka -kk -kn -ko -ku -lt -lv -mk -ml -mn -mr -nb -nb_NO -nl -nn -nn_NO -oc -or -pa -pa_IN -pt -pt_BR -pt_PT -rm -ro -ru -si -sk -sl -sq -sr -sv -sv_SE -ta -ta_LK -te -th -tr -uk -vi -zh_CN -zh_TW" 0 kB

_________________
"bo kto ma racje ? ten kto z bliska zobaczy"
"moge nie wiedziec,wchlaniam niewiedze z malych torebek"
http://i12.tinypic.com/4pow0mu.png
http://userbar.tgr.debil.eu/userbar.jpg
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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