Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
which java to emerge? [SOLVED]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
veilig
Apprentice
Apprentice


Joined: 11 May 2005
Posts: 153

PostPosted: Thu Oct 12, 2006 3:08 pm    Post subject: which java to emerge? [SOLVED] Reply with quote

I'm trying to look at a webpage and it needs the java runtime environment plugin. is there a package I can emerge to make this work and if so what package? or should I download the jre from suns website?

Last edited by veilig on Thu Oct 12, 2006 3:36 pm; edited 1 time in total
Back to top
View user's profile Send private message
Lloeki
Guru
Guru


Joined: 14 Jun 2006
Posts: 437
Location: France

PostPosted: Thu Oct 12, 2006 3:17 pm    Post subject: Reply with quote

blackdown-jdk (java 1.4) and/or sun-jdk (java 1.5), with nsplugin use flag

eselect java-nsplugin and eselect java-vm to choose which one if you have both

http://java.com/en/download/help/testvm.xml to test if it works
_________________
Moved to using Arch Linux
Life is meant to be lived, not given up...
HOLY COW I'M TOTALLY GOING SO FAST OH F*** ;)
Back to top
View user's profile Send private message
veilig
Apprentice
Apprentice


Joined: 11 May 2005
Posts: 153

PostPosted: Thu Oct 12, 2006 3:36 pm    Post subject: Reply with quote

thank you!
Back to top
View user's profile Send private message
urcindalo
l33t
l33t


Joined: 08 Feb 2005
Posts: 623
Location: Almeria, Spain

PostPosted: Mon Oct 16, 2006 4:14 pm    Post subject: Reply with quote

First of all thanks for reading this and trying to help.

After today's rsync my system was to update (among others) these packages:
Code:
[ebuild     U ]     dev-java/blackdown-jdk-1.4.2.03-r12 [1.4.2.03-r2] USE="nsplugin -doc (-X%*) (-alsa%*) (-browserp[ebuild     U ]     dev-java/blackdown-jdk-1.4.2.03-r12 [1.4.2.03-r2] USE="nsplugin -doc (-X%*) (-alsa%*) (-browserplugin%) (-mozilla%*)" 0 kB
[ebuild     U ] sys-apps/man-pages-2.39 [2.38] USE="nls" 1,764 kB
[nomerge      ] perl-core/Test-Harness-2.56
[nomerge      ]    dev-libs/openssl-0.9.8d  USE="bindist zlib -emacs (-sse2) -test"
[nomerge      ]     dev-lang/perl-5.8.8-r2  USE="berkdb gdbm -build -debug -doc -ithreads -perlsuid"
[nomerge      ]      sys-devel/libperl-5.8.8-r1  USE="berkdb gdbm -debug -ithreads"
[ebuild     U ]       sys-libs/db-4.2.52_p4-r2 [4.2.52_p2-r1] USE="java tcl -bootstrap -doc -nocxx -test" 9 kB
[ebuild  NS   ]        virtual/jre-1.5.0  0 kB
[ebuild  NS   ]        virtual/jdk-1.5.0  0 kB
[ebuild  N    ]         dev-java/sun-jdk-1.5.0.08  USE="X alsa jce nsplugin -doc -examples" 42,826 kB
[ebuild  N F  ]          dev-java/sun-jce-bin-1.5.0  8 kB
[ebuild  N    ]          dev-java/java-config-1.3.7  14 kB
lugin%) (-mozilla%*)" 0 kB
[ebuild     U ] sys-apps/man-pages-2.39 [2.38] USE="nls" 1,764 kB
[nomerge      ] perl-core/Test-Harness-2.56
[nomerge      ]    dev-libs/openssl-0.9.8d  USE="bindist zlib -emacs (-sse2) -test"
[nomerge      ]     dev-lang/perl-5.8.8-r2  USE="berkdb gdbm -build -debug -doc -ithreads -perlsuid"
[nomerge      ]      sys-devel/libperl-5.8.8-r1  USE="berkdb gdbm -debug -ithreads"
[ebuild     U ]       sys-libs/db-4.2.52_p4-r2 [4.2.52_p2-r1] USE="java tcl -bootstrap -doc -nocxx -test" 9 kB
[ebuild  NS   ]        virtual/jre-1.5.0  0 kB
[ebuild  NS   ]        virtual/jdk-1.5.0  0 kB
[ebuild  N    ]         dev-java/sun-jdk-1.5.0.08  USE="X alsa jce nsplugin -doc -examples" 42,826 kB
[ebuild  N F  ]          dev-java/sun-jce-bin-1.5.0  8 kB
[ebuild  N    ]          dev-java/java-config-1.3.7  14 kB


I'm on AMD64 and Sun's JDK is to be installed in my box for the first time, along with the update to already-present Blackdown's JDK.

When Sun's JDK finished emerging I saw this:
Code:
!!! ERROR: The active vm could not be found
Now using sun-jdk-1.5 as your generation-2 system JVM
 *  sun-jdk-1.5.0.08 set as the default system-vm.
 * JREs and 1.5+ JDKs are not supported for use with generation-1.
 * This is because generation-1 is only for use for building packages.
 * Only generation-2 should be used by end-users,
 * where all JREs and JDKs will be available
 * System nsplugin is already set, not changing it.
 * You can change nsplugin with eselect java-nsplugin.

 * Some parts of Sun's JDK require  virtual/lpr to be installed.
 * Be careful which Java libraries you attempt to use.

 *  Be careful: sun-jdk-1.5.0.08's Java compiler uses
 *  '-source 1.5' as default. Some keywords such as 'enum'
 *  are not valid identifiers any more in that mode,
 *  which can cause incompatibility with certain sources.

And when I tried to follow directions to change nsplugin (eselect java-nsplugin) I got this:
Code:
user@localhost ~ $ sudo eselect java-nsplugin list
Available 32-bit Java browser plugins
Available 64-bit Java browser plugins
  [1]   blackdown-jdk-1.4.2
user@localhost ~ $ sudo eselect java-nsplugin show
Current Java browser plugin
  (unset)
user@localhost ~ $ sudo eselect java-nsplugin set 1
!!! Error: Usage: set [32bit or 64bit] [nsplugin-vm]
exiting.
user@localhost ~ $ sudo eselect java-nsplugin set blackdown-jdk
!!! Error: Usage: set [32bit or 64bit] [nsplugin-vm]
exiting.
user@localhost ~ $ sudo eselect java-nsplugin set blackdown-jdk-1.4.2
!!! Error: Usage: set [32bit or 64bit] [nsplugin-vm]
exiting.


Should I set it, in the first place?
What is the correct command to set it?

On the other hand Firefox shows I got no Java-VM enabled after a reboot. This is what I get from the command line:
Code:
user@localhost ~ $ sudo eselect java-vm list
Available Java Virtual Machines:
  [1]   blackdown-jdk-1.4.2
  [2]   sun-jdk-1.5 system-vm
user@localhost ~ $ sudo eselect java-vm show
Password:
Current system-vm
  sun-jdk-1.5
Current user-vm
  (unset)

What should I do to enable JAVA so that Firefox can use it? Previously I had Blackdown's 1.4.2 working with no problems.

Thanks very much in advance.
Back to top
View user's profile Send private message
Lloeki
Guru
Guru


Joined: 14 Jun 2006
Posts: 437
Location: France

PostPosted: Tue Oct 17, 2006 6:31 am    Post subject: Reply with quote

Code:
$ sudo eselect java-nsplugin set blackdown-jdk
!!! Error: Usage: set [32bit or 64bit] [nsplugin-vm]

read carefully.

Code:
sudo eselect java-nsplugin set 64bit blackdown-jdk


plus:
1. your issue is unrelated to the topic
2. the topic is marked solved
so you should have made a new topic
_________________
Moved to using Arch Linux
Life is meant to be lived, not given up...
HOLY COW I'M TOTALLY GOING SO FAST OH F*** ;)
Back to top
View user's profile Send private message
urcindalo
l33t
l33t


Joined: 08 Feb 2005
Posts: 623
Location: Almeria, Spain

PostPosted: Tue Oct 17, 2006 8:23 am    Post subject: Reply with quote

Lloeki wrote:
Code:
sudo eselect java-nsplugin set 64bit blackdown-jdk


plus:
1. your issue is unrelated to the topic
2. the topic is marked solved
so you should have made a new topic


Thanks very much. I was tired and read the first pair of square brackets as parenthesis :cry:

Plus:
1) I was trying to exec the command Lloeki told veilig, so I think it is related :)
2) Yeah, I know, but my action could only act against me, because perhaps nobody knowing how to solve the issue would enter an already solved thread. However, I didn't want to load the forum with another thread to just ask a doubt about Lloeki's answer in this thread.

Again, thanks very much for your help. I really appreciate it.

For the sake of completeness and future reference for others, let me just say that the actual command was:
Code:
sudo eselect java-nsplugin set 64bit blackdown-jdk-1.4.2
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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