View previous topic :: View next topic |
Author |
Message |
koopdi Tux's lil' helper
Joined: 07 Feb 2011 Posts: 100
|
Posted: Sun Feb 27, 2011 5:28 pm Post subject: Nsplugin and AMD64 |
|
|
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 |
|
|
szczerb Veteran
Joined: 24 Feb 2007 Posts: 1709 Location: Poland => Lodz
|
Posted: Sun Feb 27, 2011 7:34 pm Post subject: |
|
|
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 |
|
|
koopdi Tux's lil' helper
Joined: 07 Feb 2011 Posts: 100
|
Posted: Thu Mar 03, 2011 3:41 pm Post subject: |
|
|
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 |
|
|
chiefbag Guru
Joined: 01 Oct 2010 Posts: 542 Location: The Kingdom
|
Posted: Thu Mar 03, 2011 3:44 pm Post subject: |
|
|
java -jar name_of_jar.jar |
|
Back to top |
|
|
smlg n00b
Joined: 08 Jan 2010 Posts: 13
|
Posted: Wed Dec 28, 2011 2:22 pm Post subject: |
|
|
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 |
|
|
afb n00b
Joined: 13 Oct 2007 Posts: 66
|
Posted: Wed Dec 28, 2011 3:03 pm Post subject: |
|
|
You can try
echo "dev-java/sun-jre-bin Oracle-BCLA-JavaSE" >> /etc/portage/package.license |
|
Back to top |
|
|
smlg n00b
Joined: 08 Jan 2010 Posts: 13
|
Posted: Wed Dec 28, 2011 3:14 pm Post subject: |
|
|
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 |
|
|
afb n00b
Joined: 13 Oct 2007 Posts: 66
|
Posted: Wed Dec 28, 2011 6:31 pm Post subject: |
|
|
Yes, you must run as root |
|
Back to top |
|
|
smlg n00b
Joined: 08 Jan 2010 Posts: 13
|
|
Back to top |
|
|
|