Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 73952 invoked from network); 3 Jan 2007 11:50:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Jan 2007 11:50:42 -0000 Received: (qmail 14691 invoked by uid 500); 3 Jan 2007 11:50:46 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 14646 invoked by uid 500); 3 Jan 2007 11:50:45 -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 14635 invoked by uid 99); 3 Jan 2007 11:50:45 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Jan 2007 03:50:45 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Jan 2007 03:50:35 -0800 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1H24dK-0006rY-Qk for user@ant.apache.org; Wed, 03 Jan 2007 03:50:14 -0800 Message-ID: <8139338.post@talk.nabble.com> Date: Wed, 3 Jan 2007 03:50:14 -0800 (PST) From: m1ke To: user@ant.apache.org Subject: Getting Ant to compile to a different VM? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: uninvitedm@yahoo.co.uk X-Virus-Checked: Checked by ClamAV on apache.org Hi. I am using Ant within Eclipse and need to compile to java 1.3. The problem is Eclipse is loaded up with 1.5 - and as its loaded up in this, Ant uses 1.5. All the settings in Eclipse are set to compile to 1.3, but I'm having a lot of trouble finding how to do this within the Ant settings also. There is a Runtime JRE option which is currently set to "run in the same JRE as the workspace", whenever a separate JRE is selected for 1.3 the compiler produces an error Unable to load default ProjectHelper due to java.lang.NoClassDefFoundError: org/xml/sax/SAXException. Within Windows > preferences > Ant > runtime, under global entries I have replaced tools.jar from 1.5 to 1.3 one, which then produces the error: :6: cannot access java.util.Collection [javac] bad class file: c:\jdk1.5.0_07\jre\lib\rt.jar(java/util/Collection.class) [javac] class file has wrong version 49.0, should be 47.0 [javac] Please remove or make sure it appears in the correct subdirectory of the classpath. [javac] import java.util.Collection; [javac] ^ [javac] 1 error So it's still looking in 1.5 directory.. I'm hoping any Eclipse users can help or even if there is a general ant solution, as I'm not sure how to get to stop looking in the 1.5 directory and look in the 1.3.. thanks a lot -- View this message in context: http://www.nabble.com/Getting-Ant-to-compile-to-a-different-VM--tf2913012.html#a8139338 Sent from the Ant - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org