Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Nsplugin and AMD64
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
koopdi
Tux's lil' helper
Tux's lil' helper


Joined: 07 Feb 2011
Posts: 100

PostPosted: Sun Feb 27, 2011 5:28 pm    Post subject: Nsplugin and AMD64 Reply with quote

I'm trying to get java apps to work in firefox.

//set nsplugin use flag and emerged java
Code:
# echo "dev-java/sun-jre-bin nsplugin" >> /etc/portage/package.use
# emerge sun-jre-bin


//no plugins listed
Code:
eselect java-nsplugin list
Available 32-bit Java browser plugins
Available 64-bit Java browser plugins


I can compile and run java code from eclipse just fine.
Back to top
View user's profile Send private message
szczerb
Veteran
Veteran


Joined: 24 Feb 2007
Posts: 1709
Location: Poland => Lodz

PostPosted: Sun Feb 27, 2011 7:34 pm    Post subject: Reply with quote

I don't see anything tricky in the ebuild and it seems to work for me:
Code:
szczerb@nomad ~ $ eselect java-nsplugin list
Available 32-bit Java browser plugins
Available 64-bit Java browser plugins
  [1]   sun-jdk-1.6  current
  [2]   sun-jre-bin-1.6


You might want to check if the actuall .so is in place:
Code:
szczerb@nomad ~ $ file /opt/sun-jre-bin-1.6.0.23/lib/amd64/libnpjp2.so
/opt/sun-jre-bin-1.6.0.23/lib/amd64/libnpjp2.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped
I can't really think of anything else.
Back to top
View user's profile Send private message
koopdi
Tux's lil' helper
Tux's lil' helper


Joined: 07 Feb 2011
Posts: 100

PostPosted: Thu Mar 03, 2011 3:41 pm    Post subject: Reply with quote

You know what?
I just forgot to emerge sun-jre-bin...now that i have, I get java in firefox.

I have a follow up question:
How can I launch a java program from the terminal?
Back to top
View user's profile Send private message
chiefbag
Guru
Guru


Joined: 01 Oct 2010
Posts: 542
Location: The Kingdom

PostPosted: Thu Mar 03, 2011 3:44 pm    Post subject: Reply with quote

java -jar name_of_jar.jar
Back to top
View user's profile Send private message
smlg
n00b
n00b


Joined: 08 Jan 2010
Posts: 13

PostPosted: Wed Dec 28, 2011 2:22 pm    Post subject: Reply with quote

Code:
Sgo sgo # emerge dev-java/sun-jre-bin

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

Calculating dependencies... done!
[ebuild  N F   ] dev-java/sun-jre-bin-1.6.0.29-r1  USE="X alsa nsplugin -jce"

The following license changes are necessary to proceed:
#required by dev-java/sun-jre-bin (argument)
>=dev-java/sun-jre-bin-1.6.0.29-r1 Oracle-BCLA-JavaSE

NOTE: This --autounmask behavior can be disabled by setting
      EMERGE_DEFAULT_OPTS="--autounmask=n" in make.conf.

Use --autounmask-write to write changes to config files (honoring CONFIG_PROTECT).


how can i accept the license or unmask it?

the sites i visit require sun-java and not icedtea.

thank you!
Back to top
View user's profile Send private message
afb
n00b
n00b


Joined: 13 Oct 2007
Posts: 66

PostPosted: Wed Dec 28, 2011 3:03 pm    Post subject: Reply with quote

You can try

echo "dev-java/sun-jre-bin Oracle-BCLA-JavaSE" >> /etc/portage/package.license
Back to top
View user's profile Send private message
smlg
n00b
n00b


Joined: 08 Jan 2010
Posts: 13

PostPosted: Wed Dec 28, 2011 3:14 pm    Post subject: Reply with quote

afb wrote:
You can try

echo "dev-java/sun-jre-bin Oracle-BCLA-JavaSE" >> /etc/portage/package.license


should I do this as root?

Code:
echo "dev-java/sun-jre-bin Oracle-BCLA-JavaSE" >> /etc/portage/package.license
Back to top
View user's profile Send private message
afb
n00b
n00b


Joined: 13 Oct 2007
Posts: 66

PostPosted: Wed Dec 28, 2011 6:31 pm    Post subject: Reply with quote

Yes, you must run as root
Back to top
View user's profile Send private message
smlg
n00b
n00b


Joined: 08 Jan 2010
Posts: 13

PostPosted: Thu Dec 29, 2011 2:00 am    Post subject: Reply with quote

thank you for your reply.

i have also found a similar situation here:

https://forums.gentoo.org/viewtopic-t-894276-start-0.html
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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