Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 70746 invoked by uid 500); 16 Mar 2001 19:24:56 -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 70582 invoked from network); 16 Mar 2001 19:24:52 -0000 Message-ID: <003001c0ae4f$034c5f00$012a2a0a@nshome> From: "Nico Seessle" To: References: <000901c0ae36$54f91190$c47d5992@gfx.com> Subject: Re: IBM JDK1.1.8 and sourcepath Date: Fri, 16 Mar 2001 20:26:32 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N ----- Original Message ----- From: "Brendon Mclean" To: Sent: Friday, March 16, 2001 5:29 PM Subject: IBM JDK1.1.8 and sourcepath > I am trying to get Ant to work with IBM JDK 1.1.8 but I keep getting the > following: > > [javac] Modern compiler is not available - using classic compiler > [javac] javac: invalid flag: -sourcepath > [javac] use: javac > [-g][-O][-debug][-depend][-nowarn][-verbose][-classpath > path][-nowrite][-deprecation][-d dir][-J] file.java... > > I presume it is because the IBM JDK does not support this directive, but > assumes the sources are located from the runtime dir. Am I doing something > wrong or is the IBM JDK not supported. It should normally be supported. Sun JDK 1.1.x seems not to support that flag either. (And it does for me) Are you sure you are running Ant with the IBM VM and there is nothing from a newer VM on the Classpath? Ant 1.3 only includes -sourcepath if the Java version it detects is not 1.1. Try to run your build with -verbose and have a look at the line "Detected Java Version". Nico