Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 29098 invoked by uid 500); 9 May 2001 22:19:23 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 28959 invoked from network); 9 May 2001 22:19:20 -0000 Sender: david Message-ID: <3AF9B3DA.B416E0BF@btconnect.com> Date: Wed, 09 May 2001 22:17:14 +0100 From: David Goodenough X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.14 i586) X-Accept-Language: en MIME-Version: 1.0 To: ant-user@jakarta.apache.org Subject: Re: Using Ant with IBM Java 1.3 References: <3AF44CF1.C8E64ADF@btconnect.com> Content-Type: multipart/mixed; boundary="------------F6F4C0411CA5ED50473131BF" X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N This is a multi-part message in MIME format. --------------F6F4C0411CA5ED50473131BF Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit David Goodenough wrote: > Hi, > > I have read my way through the archives, and noticed that many > questions have been raised about using Ant with IBM's Java > 1.3. I have looked at the CLASSPATH etc and I am sure that > Ant should be finding the right tools.jar and that inside this > jar is the right class com.sun.tools.javac.Main, but still it does > not work. I am running under Linux by the way. > > Now I so have many Java JVMs installed on my machine, but > none of them are actually in the regular paths, and there is > no exported CLASSPATH there by default. > > I set JAVA_HOME to point to the root of the JDK:- > > /opt/IBMJava2-13 > > and boostrap.sh correctly finds tools.jar in lib. > > When I run bootstrap to try to compile Ant (from CVS) it > goes through the compile of the basic Ant classes, but then > when it runs the generated Ant with build.xml it complains > that it can not use modern as it can not find it and so it > trys to use classic and fails on that too. > > Anyone got any ideas? > > Tnanks in advance > > David Well I have done some more experiments, and what I have found is that Ant works IFF tools.jar is copied into the jre lib/ext directory. This suggests that either the security policies are different or the AntClassLoader is somehow interacting oddly with the compiler class. Anyone got any ideas? --------------F6F4C0411CA5ED50473131BF Content-Type: text/x-vcard; charset=us-ascii; name="david.goodenough.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for David Goodenough Content-Disposition: attachment; filename="david.goodenough.vcf" begin:vcard n:Goodenough;David x-mozilla-html:FALSE org:D.G.A. ltd adr:;;;;;; version:2.1 email;internet:David.Goodenough@DGA.co.uk x-mozilla-cpt:;0 fn:David Goodenough end:vcard --------------F6F4C0411CA5ED50473131BF--