public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] java virtual machine
@ 2015-12-10 16:56 Frederico Moraes Ferreira
  2015-12-10 23:06 ` Urs Schütz
  0 siblings, 1 reply; 6+ messages in thread
From: Frederico Moraes Ferreira @ 2015-12-10 16:56 UTC (permalink / raw
  To: gentoo-user

Hi List,
I'm trying to set the java virtual machine as follows:

####################################################
mephisto ~ # java-config --list-available-vms
The following VMs are available for generation-2:
*)    Oracle JDK 1.8.0.66 [oracle-jdk-bin-1.8]

mephisto ~ # java-config --set-system-vm oracle-jdk-bin-1.8
Now using oracle-jdk-bin-1.8 as your generation-2 system JVM

ferreirafm@mephisto ~ $ java-config --set-user-vm oracle-jdk-bin-1.8
Now using oracle-jdk-bin-1.8 as your user JVM
#####################################################

Well, when I try to install some java application, it issues that no 
virtual machine
is in the PATH (as show bellow).

####################################################
ferreirafm@mephisto ~/Downloads $ sh ./install-jalview.bin
Preparing to install...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
No Java virtual machine could be found from your PATH
environment variable.  You must install a VM prior to
running this program.
#####################################################

I know I can set PATH in the .bashrc, but shouldn't
" java-config --set-user-vm" do the work?

Best,
Fred


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] java virtual machine
  2015-12-10 16:56 [gentoo-user] java virtual machine Frederico Moraes Ferreira
@ 2015-12-10 23:06 ` Urs Schütz
  2015-12-11 17:12   ` Frederico Moraes Ferreira
  0 siblings, 1 reply; 6+ messages in thread
From: Urs Schütz @ 2015-12-10 23:06 UTC (permalink / raw
  To: gentoo-user

On 12/10/15 14:56, Frederico Moraes Ferreira wrote:
> Hi List,

Hi Fred

> I'm trying to set the java virtual machine as follows:
>
> ####################################################
> mephisto ~ # java-config --list-available-vms
> The following VMs are available for generation-2:
> *)    Oracle JDK 1.8.0.66 [oracle-jdk-bin-1.8]
>
> mephisto ~ # java-config --set-system-vm oracle-jdk-bin-1.8
> Now using oracle-jdk-bin-1.8 as your generation-2 system JVM
>
> ferreirafm@mephisto ~ $ java-config --set-user-vm oracle-jdk-bin-1.8
> Now using oracle-jdk-bin-1.8 as your user JVM
> #####################################################
>
> Well, when I try to install some java application, it issues that no
> virtual machine
> is in the PATH (as show bellow).
>
> ####################################################
> ferreirafm@mephisto ~/Downloads $ sh ./install-jalview.bin
> Preparing to install...
> Extracting the installation resources from the installer archive...
> Configuring the installer for this system's environment...
> No Java virtual machine could be found from your PATH
> environment variable.  You must install a VM prior to
> running this program.
> #####################################################
>
> I know I can set PATH in the .bashrc, but shouldn't
> " java-config --set-user-vm" do the work?

I do not know the answer to your question. But here is how I switch java 
virtual machines:

$ eselect java-vm list
Available Java Virtual Machines:
   [1]   icedtea-bin-7  system-vm
   [2]   oracle-jre-bin-1.7

$ eselect java-vm set user 2
or
$ sudo eselect java-vm set system 2

Urs





^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] java virtual machine
  2015-12-10 23:06 ` Urs Schütz
@ 2015-12-11 17:12   ` Frederico Moraes Ferreira
  2015-12-11 22:47     ` Urs Schütz
  0 siblings, 1 reply; 6+ messages in thread
From: Frederico Moraes Ferreira @ 2015-12-11 17:12 UTC (permalink / raw
  To: gentoo-user

Has anybody happen to know which java distribution, except the oracle 
one, will carry javaws?
Thanks,
Fred

Em 10-12-2015 23:06, Urs Schütz escreveu:
> I do not know the answer to your question. But here is how I switch 
> java virtual machines:
>
> $ eselect java-vm list
> Available Java Virtual Machines:
>   [1]   icedtea-bin-7  system-vm
>   [2]   oracle-jre-bin-1.7
>
> $ eselect java-vm set user 2
> or
> $ sudo eselect java-vm set system 2



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] java virtual machine
  2015-12-11 17:12   ` Frederico Moraes Ferreira
@ 2015-12-11 22:47     ` Urs Schütz
  2015-12-11 23:35       ` Urs Schütz
  0 siblings, 1 reply; 6+ messages in thread
From: Urs Schütz @ 2015-12-11 22:47 UTC (permalink / raw
  To: gentoo-user

On 12/11/15 15:12, Frederico Moraes Ferreira wrote:
> Has anybody happen to know which java distribution, except the oracle
> one, will carry javaws?
> Thanks,
> Fred

javaws was working here with icedtea-bin-7.

-- 
Urs


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] java virtual machine
  2015-12-11 22:47     ` Urs Schütz
@ 2015-12-11 23:35       ` Urs Schütz
  2015-12-14 10:50         ` Frederico Moraes Ferreira
  0 siblings, 1 reply; 6+ messages in thread
From: Urs Schütz @ 2015-12-11 23:35 UTC (permalink / raw
  To: gentoo-user

On 12/11/15 20:47, Urs Schütz wrote:
> On 12/11/15 15:12, Frederico Moraes Ferreira wrote:
>> Has anybody happen to know which java distribution, except the oracle
>> one, will carry javaws?
>> Thanks,
>> Fred
>
> javaws was working here with icedtea-bin-7.
>

Correction: dev-java/icedtea-web seems to be the package providing 
javaws for icedtea.

-- 
Urs


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] java virtual machine
  2015-12-11 23:35       ` Urs Schütz
@ 2015-12-14 10:50         ` Frederico Moraes Ferreira
  0 siblings, 0 replies; 6+ messages in thread
From: Frederico Moraes Ferreira @ 2015-12-14 10:50 UTC (permalink / raw
  To: gentoo-user

Tks

Em 11-12-2015 23:35, Urs Schütz escreveu:
> On 12/11/15 20:47, Urs Schütz wrote:
>> On 12/11/15 15:12, Frederico Moraes Ferreira wrote:
>>> Has anybody happen to know which java distribution, except the oracle
>>> one, will carry javaws?
>>> Thanks,
>>> Fred
>>
>> javaws was working here with icedtea-bin-7.
>>
>
> Correction: dev-java/icedtea-web seems to be the package providing 
> javaws for icedtea.
>



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-12-14 12:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-10 16:56 [gentoo-user] java virtual machine Frederico Moraes Ferreira
2015-12-10 23:06 ` Urs Schütz
2015-12-11 17:12   ` Frederico Moraes Ferreira
2015-12-11 22:47     ` Urs Schütz
2015-12-11 23:35       ` Urs Schütz
2015-12-14 10:50         ` Frederico Moraes Ferreira

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox