Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EECF3C056 for ; Wed, 13 Jun 2012 10:48:59 +0000 (UTC) Received: (qmail 79692 invoked by uid 500); 13 Jun 2012 10:48:59 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 79527 invoked by uid 500); 13 Jun 2012 10:48:59 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 79516 invoked by uid 99); 13 Jun 2012 10:48:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2012 10:48:58 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jochen.wiedmann@gmail.com designates 209.85.213.43 as permitted sender) Received: from [209.85.213.43] (HELO mail-yw0-f43.google.com) (209.85.213.43) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2012 10:48:52 +0000 Received: by yhkk6 with SMTP id k6so503147yhk.30 for ; Wed, 13 Jun 2012 03:48:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=74ulyxc7kulvURh1PBAjwLa4n+huQeqwHn834vue8Ho=; b=LSiFSWqhSgiy6u/DkAVooTLunGGncVmsWFSWw771QqeSXMHisV9jnskJv7HLkbPWmM GXrl44gksQ4BqH8w+WKCGW1x5GUUI12coq3I5oQixwL9UqJJZPrOYXYuExcFSYdu0R98 KmlVvGMBQShFaB0TtroO5Y3Kct5z4DRG+o1CrCAL87e2a12VzjpSolTBVmNWwBjqV2aj 9JFFmzjunaVjIyaBkEphr1nUsKtWirmnXktiJQkNFXv2Q3CC4Qd7fs9SlbecUE6OPF40 9c2m6cKklUvJwI/fE03rm53Hcoo5tNppDS36GOwXsr+dKHIeab0j1OU2MTdA2LMc1sdi j9zg== MIME-Version: 1.0 Received: by 10.50.10.137 with SMTP id i9mr10050139igb.60.1339584511278; Wed, 13 Jun 2012 03:48:31 -0700 (PDT) Received: by 10.231.37.72 with HTTP; Wed, 13 Jun 2012 03:48:31 -0700 (PDT) In-Reply-To: <20120613101900.GU32074@dusk.harfang.homelinux.org> References: <20120613101900.GU32074@dusk.harfang.homelinux.org> Date: Wed, 13 Jun 2012 12:48:31 +0200 Message-ID: Subject: Re: [Math] How to select a specific JDK ? From: Jochen Wiedmann To: Commons Developers List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Yes, that switch is called PATH (environment variable). On Wed, Jun 13, 2012 at 12:19 PM, Gilles Sadowski wrote: > Hello. > > Are there command-line switches that will select a specific JDK? > I.e. I have several of them installed: > > $ ls -l /usr/lib/jvm > total 36 > lrwxrwxrwx =C2=A01 root root =C2=A0 24 Dec 17 11:04 default-java -> java-= 1.6.0-openjdk-amd64 > lrwxrwxrwx =C2=A01 root root =C2=A0 18 Jan =C2=A05 18:27 java-1.5.0-gcj -= > java-1.5.0-gcj-4.6 > drwxr-xr-x =C2=A06 root root 4096 Jan 18 15:04 java-1.5.0-gcj-4.4 > drwxr-xr-x =C2=A06 root root 4096 Mar =C2=A07 17:33 java-1.5.0-gcj-4.6 > lrwxrwxrwx =C2=A01 root root =C2=A0 23 Aug 11 =C2=A02010 java-1.5.0-sun -= > java-1.5.0-sun-1.5.0.22 > drwxr-xr-x 10 root root 4096 Aug 11 =C2=A02010 java-1.5.0-sun-1.5.0.22 > lrwxrwxrwx =C2=A01 root root =C2=A0 20 Dec 16 18:51 java-1.6.0-openjdk-am= d64 -> java-6-openjdk-amd64 > lrwxrwxrwx =C2=A01 root root =C2=A0 20 May =C2=A03 14:00 java-1.7.0-openj= dk-amd64 -> java-7-openjdk-amd64 > drwxr-xr-x =C2=A03 root root 4096 Jan 18 15:38 java-6-openjdk > drwxr-xr-x =C2=A07 root root 4096 Mar =C2=A07 17:29 java-6-openjdk-amd64 > drwxr-xr-x =C2=A03 root root 4096 Jan 18 15:38 java-6-openjdk-common > lrwxrwxrwx =C2=A01 root root =C2=A0 19 Jun =C2=A09 =C2=A02011 java-6-sun = -> java-6-sun-1.6.0.26 > drwxr-xr-x =C2=A08 root root 4096 Jan 18 15:47 java-6-sun-1.6.0.26 > drwxr-xr-x =C2=A07 root root 4096 Jun =C2=A05 17:12 java-7-openjdk-amd64 > drwxr-xr-x =C2=A03 root root 4096 Jun =C2=A05 17:12 java-7-openjdk-common > lrwxrwxrwx =C2=A01 root root =C2=A0 12 Jan =C2=A05 18:27 java-gcj -> java= -gcj-4.6 > lrwxrwxrwx =C2=A01 root root =C2=A0 18 Apr 29 =C2=A02010 java-gcj-4.4 -> = java-1.5.0-gcj-4.4 > lrwxrwxrwx =C2=A01 root root =C2=A0 18 Nov 14 =C2=A02011 java-gcj-4.6 -> = java-1.5.0-gcj-4.6 > > and I'd like to be able to say something like > =C2=A0-D...=3D/usr/lib/jvm/java-7-openjdk-amd64 > so that maven will use the corresponding compiler and JVM. > > Does the default configuration already cares for this? If so, which are t= he > command-lins options? > > If not, I guess that this should be defined in a "profile" in > "settings.xml". If so, could someone post such a profile? > > > Thanks, > Gilles > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > For additional commands, e-mail: dev-help@commons.apache.org > --=20 In other words: what could be seen as a socially debilitating failure of character can certainly work to your advantage too. (Linus Torvalds, but the use in the signature tells something about me as well.) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org