From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 32B841384B4 for ; Thu, 10 Dec 2015 23:06:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 78EE0E089A; Thu, 10 Dec 2015 23:06:08 +0000 (UTC) Received: from mail-vk0-f45.google.com (mail-vk0-f45.google.com [209.85.213.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6B2DCE0895 for ; Thu, 10 Dec 2015 23:06:07 +0000 (UTC) Received: by vkha189 with SMTP id a189so104783320vkh.2 for ; Thu, 10 Dec 2015 15:06:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:reply-to:subject:references:to:from:organization:message-id :date:user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=w1pOdMouQCytS/KI9YnxzHooevvAwZU20/gGRFTs6mY=; b=JugKUzMLL6KDFoKe5cUca3b92uBgCwLYdefM2DTqblJPs9T0xEw94vbaVGehN86GBD laBVlcfngdpcpOSpvpvPbwTtzReF0/wzYTdHYckSouEhqWvee7oS7AP/5ZBJMBgYsVY2 Igp2EnFKLeg00sL907SDIcE6GsBbB9dWr61RJNkR1CjqSmswyvDU5wtVv/Fok1GfaC2F QFUlVEVT/1DpNvIBhHyT+xkK4yRbZcANICSHR8LXL2/6llf/OirKCMV6HSaA91Hye7ba /jm+W1/i5uTMM/vVNsnr2h44BVezWzi7ib0roP/Dx7oHIcG0Md+DJRunRw7PqWVyrcqD mpBg== X-Received: by 10.129.4.137 with SMTP id 131mr6559155ywe.169.1449788765410; Thu, 10 Dec 2015 15:06:05 -0800 (PST) Received: from [192.168.0.187] ([177.235.182.193]) by smtp.googlemail.com with ESMTPSA id t189sm10786344ywd.43.2015.12.10.15.06.04 for (version=TLSv1/SSLv3 cipher=OTHER); Thu, 10 Dec 2015 15:06:04 -0800 (PST) Sender: =?UTF-8?Q?Urs_Sch=C3=BCtz?= Subject: Re: [gentoo-user] java virtual machine References: <5669AEB2.7050509@usp.br> To: gentoo-user@lists.gentoo.org From: =?UTF-8?Q?Urs_Sch=c3=bctz?= Organization: bluewin.ch Message-ID: <566A0558.5030204@bluewin.ch> Date: Thu, 10 Dec 2015 21:06:00 -0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 In-Reply-To: <5669AEB2.7050509@usp.br> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 0f931064-1b1a-41c2-b541-b9d087577cb8 X-Archives-Hash: 2ca7873cec7d439b2b91b9a7cc96b957 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