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