Gentoo Archives: gentoo-amd64

From: Daiajo Tibdixious <daiajo@×××××.com>
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64] trouble with both 32bit & 64bit java in firefox
Date: Sun, 10 May 2009 05:05:18
Message-Id: a4a9bfcb0905092205y4700b91ay1b7ee66d6a8fba76@mail.gmail.com
In Reply to: Re: [gentoo-amd64] trouble with both 32bit & 64bit java in firefox by Drake Donahue
1 On Sun, May 10, 2009 at 4:30 AM, Drake Donahue <donahue95@×××××××.net> wrote:
2 > On Sun, 2009-05-10 at 01:39 +0000, Daiajo Tibdixious wrote:
3 >> On Sat, May 9, 2009 at 1:35 PM, Drake Donahue <donahue95@×××××××.net> wrote:
4 >> > On Sat, 2009-05-09 at 14:59 +0200, Beso wrote:
5 >> >> 2009/5/9 Daiajo Tibdixious <daiajo@×××××.com>
6 >> >>         # eselect java-nsplugin list
7 >> >>         Available 32-bit Java browser plugins
8 >> >>          [1]  emul-linux-x86-java-1.6 current
9 >> >>          [2]  emul-linux-x86-java-1.6-plugin2
10 >> >>         Available 64-bit Java browser plugins
11 >> >>          [1]  sun-jdk-1.6
12 >> >>
13 >> >>         I have blackdown java installed but it does not show up in
14 >> >>         eselect. Why is that?
15 >> >>
16 >> >>         When I start firefox-bin & goto about:plugins it says "no
17 >> >>         plugins
18 >> >>         installed", despite this symlink:
19 >> >>         /usr/lib32/nsbrowser/plugins/javaplugin.so ->
20 >> >>         /usr/share/java-config-2/nsplugin/emul-linux-x86-java-1.6-javaplugin.so
21 >> >>
22 >> >>         When I use 64 bit firefox with the sun jdk it comes up and
23 >> >>         'sort of'
24 >> >>         works, sort of doesn't. In general
25 >> >>         I hate it because its flaky, & consistently fails on 1 big
26 >> >>         applet.
27 >> >>
28 >> >>         I was previously using the blackdown plugin, however if I
29 >> >>         manually
30 >> >>         create the symlink, firefox will not start up, it Segmentation
31 >> >>         fault's. This is the symlink I setup:
32 >> >>         /usr/lib64/nsbrowser/plugins/javaplugin.so ->
33 >> >>         /opt/blackdown-jre-1.4.2.03/plugin/amd64/mozilla/libjavaplugin_oji.so
34 >> >>         I also tried pointing it to
35 >> >>         /opt/blackdown-jre-1.4.2.03/lib/amd64/libjavaplugin_jni.so
36 >> >>         which also causes a Segmentation fault.
37 >> >>
38 >> >>         I dont care whether I use 32 or 64 bit firefox, I just want
39 >> >>         java to
40 >> >>         work reliably.
41 >> >>
42 >> >>         Googling, a lot of people are getting Segmentation faults,
43 >> >>         with the
44 >> >>         suggestion "use blackdown". However even mozilla's plugin page
45 >> >>         does
46 >> >>         not give the symlinks to use.
47 >> >>
48 >> >>         This page http://fedora64.org/desktop-64-posts/java-x86_64/
49 >> >>         says to make the source libjavaplugin_oji.so
50 >> >>         If I use that or javaplugin_oji.so firefox starts but
51 >> >>         about:plugins
52 >> >>         shows no plugins installed.
53 >> >>
54 >> >>         My googling isn't turning up much helpful, I suspect I just
55 >> >>         don't know
56 >> >>         enough to provide good keywords.
57 >> >>
58 >> >>
59 >> >> drop the blackdown java and use the official 1.6 release. the latest
60 >> >> one provides 32 and 64 bit plugins. the blackdown java is really a bad
61 >> >> piece of code now.
62 >> >>
63 >> >> --
64 >> >> dott. ing. beso
65 >> >
66 >> > java-config not eselect with java
67 >>
68 >> I java-config bacl top the sun one:
69 >> The following VMs are avilable for generation-2:
70 >> 1)      Blackdown JRE 1.4.2.03 (blackown-jre-1.4.2)
71 >> 2)      Sun 32bit JRE 1.6.0.13 (emul-linux-x86-java-1.6)
72 >> *)      Sun JRE 1.6.0.13 (sun-jdk-1.6)
73 >>
74 >> Started firefox & about:plugins shows no plugins.
75 >> So I also did eslect java-nsplugin:
76 >>         :
77 >> Avialble 64-bit Java browser plugins
78 >>   [1]  sun-jdk-1.6 current
79 >>
80 >> Started firefox & no plugins.
81 >> I traced the symbolic links & manually set it to
82 >> /opt/sun-jdk-1.6.0.13/jre/lib/amd64/libnpjp2.so
83 >> which also did not work.
84 >>
85 >> This is all really weird because I had it working with sun-jdk earlier.
86 >>
87 >> I also found /opt/firefox/plugins was point to
88 >> /usr/lib32/nsbrowser/plugins. I repointed this to lib64 & got this
89 >> error:
90 >> LoadPlugin: failed to initialize shared library
91 >> /opt/sun-jdk-1.6.0.13/jre/lib/amd64/libnpjp2.so [...: wrong ELF class:
92 >> ELFCLASS64
93 >> from firefox-bin (which I'm using for mail so I can start/stop firefox
94 >> at will. I suspect that /opt/firefox/plugins is just for firefox-bin.
95 >>
96 > You can install a Java plugin for your web browser by emerging a Java VM
97 > with the nsplugin USE flag set. Perhaps the use flag got lost?
98
99 I thought of that, its in make.conf & emerge --info.
100 To be sure I rebuild sun-jdk & firefox.
101 sun-jdk has the nsplugin use flag set & firefox has the java use flag set.
102 Still no plugins, grrr.

Replies

Subject Author
Re: [gentoo-amd64] trouble with both 32bit & 64bit java in firefox Bob Sanders <rsanders@×××.com>