Return-Path: X-Original-To: apmail-ant-user-archive@www.apache.org Delivered-To: apmail-ant-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 811A29C4A for ; Sun, 5 Feb 2012 05:04:39 +0000 (UTC) Received: (qmail 4190 invoked by uid 500); 5 Feb 2012 05:04:38 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 3806 invoked by uid 500); 5 Feb 2012 05:04:21 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 3793 invoked by uid 99); 5 Feb 2012 05:04:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Feb 2012 05:04:15 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [88.84.128.168] (HELO samaflost.de) (88.84.128.168) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Feb 2012 05:04:08 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by samaflost.de (Postfix) with ESMTP id DC38540F0108 for ; Sun, 5 Feb 2012 06:03:46 +0100 (CET) Received: from samaflost.de ([127.0.0.1]) by localhost (v35516.1blu.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id V-lFUA08tyoN for ; Sun, 5 Feb 2012 06:03:46 +0100 (CET) Received: by samaflost.de (Postfix, from userid 1000) id 4373D40F0107; Sun, 5 Feb 2012 06:03:46 +0100 (CET) From: Stefan Bodewig To: user@ant.apache.org Subject: Re: ant on redhat - selection of java jdk for compiles References: Date: Sun, 05 Feb 2012 06:03:46 +0100 In-Reply-To: (glenn opdycke-hansen's message of "Sat, 4 Feb 2012 07:50:06 -0600") Message-ID: <87fwepvpl9.fsf@v35516.1blu.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On 2012-02-04, glenn opdycke-hansen wrote: > I am using ant on redhat environment. You have probably installed Ant from an RPM rather than an Apache distribution, right? If so, it is quite possible the wrapper shell script is different from the one we have written. > There are multiple Java jdk installs on the system. I just requested > that ibm jdk 1.6 sr10 be installed. > The build script in ant 1.6.5 is getting the same error message as > before the sr10 jdk was installed. > Also ant -diagnostics is reporting the old (sr9) jdk. > The java home and path env settings have been changed to use the sr10 > jdk, but that does not help. "Stock Ant" will use JAVA_HOME and fall back to PATH if JAVA_HOME is absent. At least most of the time. There is some special handling in the wrapper script that reads in /etc/ant.conf if ANT_HOME is not set or is set to /usr/share/ant. This could be altering your environment, in particular it could enable the so-called rpm-mode which takes a different approach to locating the JDK (it uses /usr/share/java-utils/java-functions and I don't have any idea what this uses to locate the JDK). > Is there some suggestions for getting ant to use the sr10 jdk? You can run "ant --noconfig" which disables rpm-mode but also prevents Ant from reading ~/.ant/ant.conf and ~/.antrc - but first you may want to verify the ant shell script is the same as the one you'd get from the ASF - otherwise there is little we can do to help. Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org