Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 51096 invoked from network); 15 Dec 2003 19:28:42 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 15 Dec 2003 19:28:42 -0000 Received: (qmail 1880 invoked by uid 500); 15 Dec 2003 19:28:23 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 1856 invoked by uid 500); 15 Dec 2003 19:28:23 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 1813 invoked from network); 15 Dec 2003 19:28:22 -0000 Received: from unknown (HELO 137100.vserver.de) (62.75.137.100) by daedalus.apache.org with SMTP; 15 Dec 2003 19:28:22 -0000 Received: from antbuild.com (localhost.localdomain [127.0.0.1]) by 137100.vserver.de (8.11.6/8.11.6) with ESMTP id hBFJJpW23618 for ; Mon, 15 Dec 2003 20:19:51 +0100 Message-ID: <3FDE0AF0.7040407@antbuild.com> Date: Mon, 15 Dec 2003 20:26:40 +0100 From: =?ISO-8859-1?Q?Antoine_L=E9vy-Lambert?= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Users List Subject: Re: Ant 1.6 beta3 fails on windows xp pro References: In-Reply-To: X-Enigmail-Version: 0.82.4.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Siri Nivasam wrote: > Hello Antoine, > > Thanks for your reply. After unsetting the classpath, it worked. But > why should I do this? Is this a bug? Ant 1.5.4 works fine with the > classpath setting. > Your classpath probably includes some ant 1.5 or pre ant 1.5 ant classes. This would be the problem. Pay attention : some jars of third party suppliers include ant classes. For instance jars of BEA Weblogic, and maybe a lot of others, ... Cheers, Antoine > I am using j2sdk1.4.2_01 > > Thanks > Siri > > >> From: Antoine L�vy-Lambert >> Reply-To: "Ant Users List" >> To: Ant Users List >> Subject: Re: Ant 1.6 beta3 fails on windows xp pro >> Date: Mon, 15 Dec 2003 19:15:34 +0100 >> >> Siri Nivasam wrote: >> >>> I am running ant 1.6 beta 3 on windows xp pro with sp1. >>> >>> I get this error when I run 'ant -version' >>> >>> java.lang.InstantiationException: org.apache.tools.ant.Main >>> at java.lang.Class.newInstance0(Class.java:293) >>> at java.lang.Class.newInstance(Class.java:261) >>> at org.apache.tools.ant.launch.Launcher.run(Launcher.java:214) >>> at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90) >>> >>> Can anybody tell why? >>> >>> Siri >>> >>> >>> >> Hi Siri, >> >> I cannot tell why, but it does not sound good. >> >> Can you tell : >> >> - where is ant 1.6 beta3 installed on your computer, >> - which JDK you are using, >> - what are the settings of JAVA_HOME and ANT_HOME in your environment, >> - is the variable CLASSPATH defined in your environment ? >> >> My recommendations : >> >> - unset CLASSPATH completely to try to debug the problem, >> - set ANT_HOME to the installation directory of ant ( not necessary, >> but does not harm) >> - set JAVA_HOME to whereever your JDK is installed >> make sure that the ant version 1.6beta3 bin is in your path, ahead of >> other ant versions, >> make sure that the JDK's bin directory that you want to use is also >> ahead in the PATH >> >> Cheers, >> >> Antoine >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >> For additional commands, e-mail: user-help@ant.apache.org >> > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org