1 |
On 12/10/15 14:56, Frederico Moraes Ferreira wrote: |
2 |
> Hi List, |
3 |
|
4 |
Hi Fred |
5 |
|
6 |
> I'm trying to set the java virtual machine as follows: |
7 |
> |
8 |
> #################################################### |
9 |
> mephisto ~ # java-config --list-available-vms |
10 |
> The following VMs are available for generation-2: |
11 |
> *) Oracle JDK 1.8.0.66 [oracle-jdk-bin-1.8] |
12 |
> |
13 |
> mephisto ~ # java-config --set-system-vm oracle-jdk-bin-1.8 |
14 |
> Now using oracle-jdk-bin-1.8 as your generation-2 system JVM |
15 |
> |
16 |
> ferreirafm@mephisto ~ $ java-config --set-user-vm oracle-jdk-bin-1.8 |
17 |
> Now using oracle-jdk-bin-1.8 as your user JVM |
18 |
> ##################################################### |
19 |
> |
20 |
> Well, when I try to install some java application, it issues that no |
21 |
> virtual machine |
22 |
> is in the PATH (as show bellow). |
23 |
> |
24 |
> #################################################### |
25 |
> ferreirafm@mephisto ~/Downloads $ sh ./install-jalview.bin |
26 |
> Preparing to install... |
27 |
> Extracting the installation resources from the installer archive... |
28 |
> Configuring the installer for this system's environment... |
29 |
> No Java virtual machine could be found from your PATH |
30 |
> environment variable. You must install a VM prior to |
31 |
> running this program. |
32 |
> ##################################################### |
33 |
> |
34 |
> I know I can set PATH in the .bashrc, but shouldn't |
35 |
> " java-config --set-user-vm" do the work? |
36 |
|
37 |
I do not know the answer to your question. But here is how I switch java |
38 |
virtual machines: |
39 |
|
40 |
$ eselect java-vm list |
41 |
Available Java Virtual Machines: |
42 |
[1] icedtea-bin-7 system-vm |
43 |
[2] oracle-jre-bin-1.7 |
44 |
|
45 |
$ eselect java-vm set user 2 |
46 |
or |
47 |
$ sudo eselect java-vm set system 2 |
48 |
|
49 |
Urs |