Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Removing the 64-bit Java browser plugin
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3  
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  

Should we keep the 64-bit browser plugin?
Yes
58%
 58%  [ 63 ]
No
41%
 41%  [ 44 ]
Total Votes : 107

Author Message
Kreuzader
n00b
n00b


Joined: 23 Aug 2003
Posts: 19

PostPosted: Mon Aug 27, 2007 4:52 am    Post subject: Reply with quote

My understanding is that the most efficient way to use Java on AMD64 at present is:

Konqueror + blackdown's JVM plugin, and Sun's java-bin JRE/JDK for everything else. I don't think there's an easy way to get it working in Firefox unless you use the 32-bit firefox-bin. Is this accurate?
Back to top
View user's profile Send private message
nightmorph
Developer
Developer


Joined: 23 Jan 2005
Posts: 1382
Location: SoCal

PostPosted: Mon Aug 27, 2007 5:04 am    Post subject: Reply with quote

Yup. If you want to use something besides Blackdown for a browser plugin, you'll have to use the existing 32-bit Java packages together with a 32-bit browser like firefox-bin. You can blame upstream for 1) not releasing 64-bit Java versions (Sun, IBM) and 2) for not providing security fixes for the 64-bit Blackdown.
_________________
<UzzaDead> What is CONFIG_USB_MON?
<petteyg> A Jamaican USB configuration?

dirtyepic: "We have more cupholders."

GDP || PR
Back to top
View user's profile Send private message
edhel
n00b
n00b


Joined: 30 Mar 2005
Posts: 27

PostPosted: Mon Nov 12, 2007 12:21 pm    Post subject: Firefox java plug-in Reply with quote

Hello gentooers,

I haven't managed yet to get the java plug-in working on firefox. The farthest I managed to go when I test it at http://www.java.com/en/download/help/testvm.xml, is to get a gray box with a red cross on the topleft corner (which is still better than just getting the "missing plug-in" icon). If I open the java console from that box, I get :
Code:
Java(TM) Plug-in: Version 1.4.2
Using JRE version 1.4.2-03 Java HotSpot(TM) 64-Bit Server VM
[...]
java.lang.UnsupportedClassVersionError: testvmDynamicJavaCom (Unsupported major.minor version 49.0)


I tried to follow http://gentoo-wiki.com/HOWTO_Install_firefox_with_java_on_amd64, but I guess I'm missing something.
Relevant packages installed :
www-client/mozilla-firefox-2.0.0.8
www-client/mozilla-firefox-bin-2.0.0.4 (same problems)
dev-java/blackdown-jre-1.4.2.03-r14
dev-java/blackdown-jdk-1.4.2.03-r15
dev-java/sun-jre-bin-1.6.0.03
app-emulation/emul-linux-x86-java-1.6.0.03

This is the combination that gets me the farthest:

Code:
lrwxrwxrwx 1 root root 73 2007-11-12 13:03 /usr/lib/mozilla-firefox/plugins/libjavaplugin_oji.so -> /opt/blackdown-jdk-1.4.2.03/jre/plugin/amd64/mozilla/libjavaplugin_oji.so


Code:
# java-config -L
The following VMs are available for generation-2:
*)      Blackdown JDK 1.4.2.03 [blackdown-jdk-1.4.2]
2)      Blackdown JRE 1.4.2.03 [blackdown-jre-1.4.2]
3)      Sun 32bit JRE 1.6.0.03 [emul-linux-x86-java-1.6]
4)      Sun JRE 1.6.0.03 [sun-jre-bin-1.6]


Same thing with Blackdown JRE and symlinking to /opt/blackdown-jre-1.4.2.03, and I can't find the java plug-in in /opt/sun-jre-bin-1.6.0.03/ anymore (the nsplugin USE flag doesn't seem to exist anymore for it?)

Anything else I can try?
Back to top
View user's profile Send private message
nokia
n00b
n00b


Joined: 31 Aug 2004
Posts: 12
Location: Norway

PostPosted: Tue Nov 13, 2007 12:18 am    Post subject: Reply with quote

Please write
Code:
about:plugins
in firefox and paste the info.
Back to top
View user's profile Send private message
OmSai
l33t
l33t


Joined: 30 Sep 2007
Posts: 603
Location: Manchester, CT, USA

PostPosted: Tue Nov 13, 2007 9:10 pm    Post subject: Re: Firefox java plug-in Reply with quote

edhel wrote:
I haven't managed yet to get the java plug-in working on firefox.
...
Anything else I can try?

I'm having the same problem as you.

Check out this thread: FireFox and Java problem

I have made progress from it, and I only need to figure out how to eselect the java plugin now.

Just to make sure we're on the same page:
  1. Gentoo's Java Guide
    Gentoo Java guide wrote:
    Note: nsplugin is not available for all architectures. Check for available plugins on your arch before trying to install a VM by running emerge -pv <java-vm>.

  2. Particularly, the blackdown-jre-1.4.2.03 nsplugin cannot be used for amd64. It has been masked because of this security issue:
    [ GLSA 200705-20 ] Blackdown Java: Applet privilege escalation
    That said, I'm using the sun-jdk-1.6 VM.
    1.6 >= 1.4.2.03-r14 and is unaffected by the bug.

So it is safe to unmask the nsplugin USE flag for that package locally.
To do that I created the file /etc/portage/profile/package.use.mask and added `dev-java/sun-jdk -nsplugin` (without the backquotes)
Then I re-emerged the VM:
Code:
# emerge -Dva "dev-java/sun-jdk"






Now I still have to set a java browser plugin:
Code:
# eselect java-nsplugin show
Current Java browser plugin
  (unset)

But I'm stuck on how to set the sun-jdk-1.6 because this is the list I see:
Code:
eselect java-nsplugin list
Available 32-bit Java browser plugins
Available 64-bit Java browser plugins

...when it's actually supposed to look like this:
Gentoo Java guide wrote:
# eselect java-nsplugin list
[1] sun-jre-bin-1.5
[2] blackdown-jre-1.4.2

...and java-config complains when I try to force it through
Code:
# eselect java-nsplugin set 64bit sun-jdk-1.6
!!! Error: Expected "/usr/share/java-config-2/nsplugin/sun-jre-bin-javaplugin.so" to exist, but it doesn't.
!!! Error: Perhaps "sun-jdk-1.6" isn't a valid name of VM built with nsplugin?
Code:
# eselect java-nsplugin set 32bit sun-jdk-1.6
!!! Error: Expected "/usr/share/java-config-2/nsplugin/sun-jre-bin-javaplugin.so" to exist, but it doesn't.
!!! Error: Perhaps "sun-jdk-1.6" isn't a valid name of VM built with nsplugin?
Back to top
View user's profile Send private message
gimpel
Advocate
Advocate


Joined: 15 Oct 2004
Posts: 2718
Location: Munich, Bavaria

PostPosted: Tue Nov 13, 2007 9:50 pm    Post subject: Re: Firefox java plug-in Reply with quote

om wrote:
That said, I'm using the sun-jdk-1.6 VM.

On a 64bit system, sun-jdk does not provide a nsplugin.
The plugin for 32bit is in emul-linux-x86-java
Code:
$ equery uses emul-linux-x86-java|grep nsplugin
+nsplugin


But that of course only works in 32bit browsers like firefox-bin or opera.
Quote:
Code:
# eselect java-nsplugin show
Current Java browser plugin
  (unset)

But I'm stuck on how to set the sun-jdk-1.6 because this is the list I see:
Code:
eselect java-nsplugin list
Available 32-bit Java browser plugins
Available 64-bit Java browser plugins

...when it's actually supposed to look like this:
Gentoo Java guide wrote:
# eselect java-nsplugin list
[1] sun-jre-bin-1.5
[2] blackdown-jre-1.4.2

Again, that output is from a 32bit system.
Quote:
...and java-config complains when I try to force it through
Code:
# eselect java-nsplugin set 64bit sun-jdk-1.6
!!! Error: Expected "/usr/share/java-config-2/nsplugin/sun-jre-bin-javaplugin.so" to exist, but it doesn't.
!!! Error: Perhaps "sun-jdk-1.6" isn't a valid name of VM built with nsplugin?
Code:
# eselect java-nsplugin set 32bit sun-jdk-1.6
!!! Error: Expected "/usr/share/java-config-2/nsplugin/sun-jre-bin-javaplugin.so" to exist, but it doesn't.
!!! Error: Perhaps "sun-jdk-1.6" isn't a valid name of VM built with nsplugin?

See above.

Speaking of which...

what's the process on Gentoo getting IcedTea merged in the tree?
We definately need IcedTea on Gentoo. Fedora 8 comes with a working 64bit java plugin from openjdk/classpath fusion ootb. So does Ubuntu. 8O
_________________
http://proaudio.tuxfamily.org/wiki - pro-audio software overlay
Back to top
View user's profile Send private message
Raptor911
Tux's lil' helper
Tux's lil' helper


Joined: 04 Feb 2003
Posts: 82
Location: California, USA

PostPosted: Thu Nov 15, 2007 5:53 am    Post subject: Reply with quote

I would _love_ a working 64 bit java plugin

Let me know if there is some way I could help to get that in portage
Back to top
View user's profile Send private message
OmSai
l33t
l33t


Joined: 30 Sep 2007
Posts: 603
Location: Manchester, CT, USA

PostPosted: Thu Nov 15, 2007 4:35 pm    Post subject: Reply with quote

Raptor911 wrote:
I would _love_ a working 64 bit java plugin

Howto: IcedTea 64bit java plugin (the ugly way)

Raptor911 wrote:
Let me know if there is some way I could help to get that in portage

Generally to check if any ebuilds are being worked on, do this
Following those I couldn't find an existing ebuild

You can help develop an overlay
Check IRC channel #gentoo-dev-help on FreeNode for guidance

I've never helped development though :D
I'm still working on getting LPI certified before I try
Back to top
View user's profile Send private message
nixnut
Administrator
Administrator


Joined: 09 Apr 2004
Posts: 10951
Location: the dutch mountains

PostPosted: Thu Nov 15, 2007 4:39 pm    Post subject: Reply with quote

merged above six posts here.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
jokeyrhyme
n00b
n00b


Joined: 21 Jan 2008
Posts: 2

PostPosted: Mon Jan 21, 2008 11:54 pm    Post subject: Reply with quote

Just noticed that there's a "java-gcj" overlay.

I'm emerging gcj with the nsplugin and gconf USE flags right now. Will let you guys know how I go.
Back to top
View user's profile Send private message
jokeyrhyme
n00b
n00b


Joined: 21 Jan 2008
Posts: 2

PostPosted: Tue Jan 22, 2008 3:45 am    Post subject: Reply with quote

Yeah, no luck. My browser doesn't crash, I just get a grey box on pages where there's an applet. Disappointing.
Back to top
View user's profile Send private message
DaggyStyle
Advocate
Advocate


Joined: 22 Mar 2006
Posts: 3970

PostPosted: Tue Jan 22, 2008 6:03 am    Post subject: Reply with quote

the olny overlay you need is on you computer, just upgrade gcc to 4.2 and compile it with the gcj flag, get the ebuild for the svn, put it in your overlay and emerge it.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
OSSM
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 All times are GMT
Goto page Previous  1, 2, 3
Page 3 of 3

 
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