From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1G7b48-0005YD-5T for garchives@archives.gentoo.org; Mon, 31 Jul 2006 16:56:28 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k6VGtMOV026466; Mon, 31 Jul 2006 16:55:22 GMT Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.206]) by robin.gentoo.org (8.13.7/8.13.6) with ESMTP id k6VGtLPS006556 for ; Mon, 31 Jul 2006 16:55:22 GMT Received: by wx-out-0102.google.com with SMTP id r21so307698wxc for ; Mon, 31 Jul 2006 09:55:21 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=dFbydqVK3yvXaEfDSCjpw/JGYvuyp19/qYNQthjN9Vq2zTbgR8DKcRhvQ1MNJkycnuJ5E7YmgrT3rAK+Ymg1YVuak7IKUfkfsHCiRoLVUHF76hI32sJgHICn/X+kdhncMoYzzd74rzKX3OH5UzsA6GvQwM9m9dBmk7hY4kFtPUg= Received: by 10.70.71.1 with SMTP id t1mr751593wxa; Mon, 31 Jul 2006 09:55:21 -0700 (PDT) Received: by 10.70.65.13 with HTTP; Mon, 31 Jul 2006 09:55:21 -0700 (PDT) Message-ID: <254054bc0607310955m5e3128d0n794d387fb9a3c683@mail.gmail.com> Date: Mon, 31 Jul 2006 18:55:21 +0200 From: "Wiktor Wandachowicz" To: gentoo-java@lists.gentoo.org Subject: Re: [gentoo-java] JAVA_HOME set to 1.4.2 In-Reply-To: <44CE11E6.5000800@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-java@gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <44CE00BA.5000905@serent.com> <254054bc0607310615s6578a09bv91c707860e23ec5d@mail.gmail.com> <44CE11E6.5000800@gentoo.org> X-Archives-Salt: 5279bea0-64f9-4d23-9d39-7d24850a1087 X-Archives-Hash: c5c006b06b04f813f6b5d8fad47d4664 > That's actually not true. What you lose, is the benefit of not having > the current VM tied to the environment. Specifically, if you don't have > a user VM set... JAVA_HOME would point at the system VM... but if at > some point, you set a user VM, JAVA_HOME would still point to the > system VM until you source whichever file you add that snippet to. > > It is extremely important to note that if you decide to use the snippet > for root, then java-config-1 has no way of knowing what the generation-1 > VM is, because it uses JAVA_HOME to determine this. That's what I've meant when I wrote "some of the benefits". Independence from the environment settings was the most obvious one. But thanks for the clarification straight from the source. Given the consequences, I think that the script snippet from the docs can be put in a file. Then it could be sourced only when necessary before running specific scripts. This way Kurt can have best of both worlds, benefits from generation-2 and working scripts that depend on JAVA_HOME variable. Regards, Wiktor -- Registered Linux user #390131 (http://counter.li.org) -- gentoo-java@gentoo.org mailing list