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 1A7799F77 for ; Wed, 13 Jun 2012 16:59:58 +0000 (UTC) Received: (qmail 20462 invoked by uid 500); 13 Jun 2012 16:59:57 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 20365 invoked by uid 500); 13 Jun 2012 16:59:57 -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 20357 invoked by uid 99); 13 Jun 2012 16:59:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2012 16:59:57 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FREEMAIL_FORGED_REPLYTO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jak-commons-dev@m.gmane.org designates 80.91.229.3 as permitted sender) Received: from [80.91.229.3] (HELO plane.gmane.org) (80.91.229.3) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2012 16:59:49 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Sequh-00022A-I0 for dev@commons.apache.org; Wed, 13 Jun 2012 18:59:23 +0200 Received: from hsi-kbw-46-223-113-151.hsi.kabel-badenwuerttemberg.de ([46.223.113.151]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Jun 2012 18:59:23 +0200 Received: from joerg.schaible by hsi-kbw-46-223-113-151.hsi.kabel-badenwuerttemberg.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Jun 2012 18:59:23 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: dev@commons.apache.org From: =?UTF-8?B?SsO2cmc=?= Schaible Subject: Re: [Math] How to select a specific JDK ? Date: Wed, 13 Jun 2012 18:59:05 +0200 Lines: 91 Message-ID: References: <20120613101900.GU32074@dusk.harfang.homelinux.org> <20120613115648.GV32074@dusk.harfang.homelinux.org> <20120613124358.GX32074@dusk.harfang.homelinux.org> <20120613144734.GY32074@dusk.harfang.homelinux.org> Reply-To: joerg.schaible@gmx.de Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: hsi-kbw-46-223-113-151.hsi.kabel-badenwuerttemberg.de User-Agent: KNode/4.8.3 X-Virus-Checked: Checked by ClamAV on apache.org Gilles Sadowski wrote: > On Wed, Jun 13, 2012 at 03:05:13PM +0200, Xavier Detant wrote: >> The byte code generated by the compiler is totally independent from the >> JVM that will be used to run it. > > Totally independent? Compiling with 1.7 and running with 1.6 will raise > this error: > Unsupported major.minor version 51.0 Then you have setup your POM wrongly. Target should always be the lowest supported JDK. Nevertheless we have profiles in one of our parent POMs to select different JDK versions to compile and run the tests. My settings.xml contains: ============= %< ============= java-1.3 /opt/sun-jdk-1.3.1.21 java-1.4 /opt/ibm-jdk- bin-1.4.2.13_p9 java-1.5 /opt/ibm-jdk- bin-1.5.0.12_p5