Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 96998 invoked from network); 11 Oct 2008 20:15:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Oct 2008 20:15:50 -0000 Received: (qmail 44669 invoked by uid 500); 11 Oct 2008 20:15:43 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 44622 invoked by uid 500); 11 Oct 2008 20:15:42 -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 44611 invoked by uid 99); 11 Oct 2008 20:15:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Oct 2008 13:15:42 -0700 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [15.192.0.43] (HELO g5t0006.atlanta.hp.com) (15.192.0.43) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Oct 2008 20:14:37 +0000 Received: from G5W0603.americas.hpqcorp.net (g5w0603.americas.hpqcorp.net [16.228.9.186]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by g5t0006.atlanta.hp.com (Postfix) with ESMTPS id C1328C202 for ; Sat, 11 Oct 2008 20:15:09 +0000 (UTC) Received: from G3W0058.americas.hpqcorp.net (16.232.1.3) by G5W0603.americas.hpqcorp.net (16.228.9.186) with Microsoft SMTP Server (TLS) id 8.1.263.0; Sat, 11 Oct 2008 20:14:07 +0000 Received: from GVW1089EXB.americas.hpqcorp.net ([16.234.42.8]) by G3W0058.americas.hpqcorp.net ([16.232.1.3]) with mapi; Sat, 11 Oct 2008 20:14:07 +0000 From: "Pareti, Joseph" To: Ant Users List Date: Sat, 11 Oct 2008 20:14:47 +0000 Subject: RE: what does ant really use? Thread-Topic: what does ant really use? Thread-Index: AckpLID6WB2IYvC+RVO7nn0Fsud+9wCsT2Ug Message-ID: <164F2D2210CC5344BC2A2DC44BFD0D41429FE74EF0@GVW1089EXB.americas.hpqcorp.net> References: <164F2D2210CC5344BC2A2DC44BFD0D41429FE144BB@GVW1089EXB.americas.hpqcorp.net> <6dc6523c0810080258i4bc9d5d4q9df31ef715abd28d@mail.gmail.com> In-Reply-To: <6dc6523c0810080258i4bc9d5d4q9df31ef715abd28d@mail.gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Yes I am aware that there are symlinks, so I followed them to the point tha= t I am almost 100% sure there was neither javac nor gcj on the system disk.= So how can ant still compile? Does it have a "bundled" gcj ? -----Original Message----- From: John5342 [mailto:john5342@googlemail.com] Sent: Wednesday, October 08, 2008 11:58 AM To: Ant Users List Subject: Re: what does ant really use? If you changed the name of gcj and javac in /usr/bin they are not the actua= ly executables. They are only links to the real ones which in fedora (and p= robably RH) located in /usr/share/jvm//bin/. In fedora= (and again probably in RH) there is an "alternatives" application which al= lows you to choose which installed version of java you are using rather tha= n renaming binaries. Should also warn you that although RH is supported lon= ger than most and in general rock stable the software is often quite old be= cause i happen to know that more recent versions of gcj support java 1.5. H= ope this all helps you in the right direction. 2008/10/8 Pareti, Joseph > > > > As a disclaimer, I am a true ant (and java) novice. Having said that, > I am confronted with a weird problem in a j2ee project which fails at > run time with a jndi error. After several investigations, I am now > almost convinced it has to do with the build process. > > I have jdk 1.5.0_02 installed on my system, x86/RHEL 3, kernel 2.4; I > am also using ant 1.5.2_23 > > My build log file shows, for each compile target the following message: > > [javac] Using gcj compiler > > Just for kicks, I then deleted gcj as well as javac (here I mean the > javac compiler executable) from my disk i.e. I renamed both of them to > something else, and ant still worked and still claimed it's using gcj, > which leaves me totally confused. > > Perhaps one hint; at the top of the log file I see the comment > "detected java version 1.4 in /usr". > > I know this is not what I want/need (it should be 1.5), so where does > it come from? > > I then went ahead setting the following property in my build.xml: > > > > but this was quickly discarded: > > "Override ignored for property build.compiler" > which basically produced the same results as described above. I am > running out of ideas here. > > Thanks for any insights. > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org