Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 77797 invoked from network); 30 Jul 2009 03:49:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Jul 2009 03:49:04 -0000 Received: (qmail 64907 invoked by uid 500); 30 Jul 2009 03:49:03 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 64812 invoked by uid 500); 30 Jul 2009 03:49:02 -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 64775 invoked by uid 99); 30 Jul 2009 03:49:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jul 2009 03:49:02 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of pons32@hotmail.com designates 65.55.34.204 as permitted sender) Received: from [65.55.34.204] (HELO col0-omc4-s2.col0.hotmail.com) (65.55.34.204) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jul 2009 03:48:37 +0000 Received: from COL111-W20 ([65.55.34.199]) by col0-omc4-s2.col0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 29 Jul 2009 20:48:16 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_df569ffb-5e05-4742-b6ce-19e7b95b4b38_" X-Originating-IP: [38.99.59.50] From: Rez P To: Ant Subject: Building with JDK 1.3. Which version of ANT? Date: Wed, 29 Jul 2009 20:48:16 -0700 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 30 Jul 2009 03:48:16.0001 (UTC) FILETIME=[91DAA710:01CA10C8] X-Virus-Checked: Checked by ClamAV on apache.org --_df569ffb-5e05-4742-b6ce-19e7b95b4b38_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Hi =20 I'm going back in time and have to compile and old java project with JDK 1.= 3. Currently I'm using Ant 1.7 and JDK 1.5 for all my projects. So when I = wrote a build.xml for the jdk 1.3 code and in the compile target=2C using j= avac ant task=2C and set the 'source' or 'target' attributes to 1.3=2C I go= t errors that were not very clear to me=2C something like switch back to...= Does this mean I am using the wrong version of Ant and have to switch to = 1.6 or earlier versions?=20 =20 =20 C:\Temp\old_project>ant compile Buildfile: build.xml clean: [delete] Deleting directory C:\Temp\old_project\build init: [mkdir] Created dir: C:\Temp\old_project\build\WEB-INF\classes\lib jar_files: [echo] Copy jar files ... compile: [echo] Building java classes ... [javac] Compiling 220 source files to C:\Temp\old_project\build\WEB-INF= \classes [javac] Modern compiler not found - looking for classic compiler BUILD FAILED C:\Temp\old_project\build.xml:66: Cannot use classic compiler =2C as it is = not available. A common solution is to set the environment variable JAVA_HOME to your jdk= directory. It is currently set to "C:\Progra~1\java\jdk1.3.1_20\jre" Total time: 0 seconds =20 =20 Thanks for your help. =20 Rez _________________________________________________________________ Bing=99 brings you maps=2C menus=2C and reviews organized in one place. Try= it now. http://www.bing.com/search?q=3Drestaurants&form=3DMLOGEN&publ=3DWLHMTAG&cre= a=3DTXT_MLOGEN_Local_Local_Restaurants_1x1= --_df569ffb-5e05-4742-b6ce-19e7b95b4b38_--