View previous topic :: View next topic |
Author |
Message |
weijie90 n00b
Joined: 27 Aug 2005 Posts: 51
|
Posted: Fri Jul 03, 2009 1:47 am Post subject: Can't get Java working in Firefox |
|
|
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 |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
Nerevar l33t
Joined: 31 May 2008 Posts: 720
|
Posted: Mon Jul 06, 2009 3:34 pm Post subject: |
|
|
Do you have the java use flag set for xulrunner? |
|
Back to top |
|
|
weijie90 n00b
Joined: 27 Aug 2005 Posts: 51
|
Posted: Mon Jul 06, 2009 8:34 pm Post subject: |
|
|
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 |
|
|
Nerevar l33t
Joined: 31 May 2008 Posts: 720
|
Posted: Tue Jul 07, 2009 2:04 am Post subject: |
|
|
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 |
|
|
weijie90 n00b
Joined: 27 Aug 2005 Posts: 51
|
Posted: Tue Jul 07, 2009 2:22 am Post subject: |
|
|
That worked! I wish I knew that setting at first. |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
region-g Tux's lil' helper
Joined: 04 May 2005 Posts: 122 Location: Ελλάς
|
Posted: Wed Jul 08, 2009 2:22 am Post subject: |
|
|
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 |
|
|
tgR10 Apprentice
Joined: 23 Oct 2007 Posts: 262 Location: caly ten ambaras
|
Posted: Wed Jul 08, 2009 4:24 am Post subject: |
|
|
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
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 |
|
|
|