Gentoo Archives: gentoo-amd64

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

Replies

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