Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 55199 invoked from network); 1 Jun 2004 19:25:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 1 Jun 2004 19:25:55 -0000 Received: (qmail 92347 invoked by uid 500); 1 Jun 2004 19:26:01 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 92244 invoked by uid 500); 1 Jun 2004 19:25:59 -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 92230 invoked by uid 99); 1 Jun 2004 19:25:59 -0000 Received: from [128.143.103.198] (HELO postfix.mail.ehatchersolutions.com) (128.143.103.198) by apache.org (qpsmtpd/0.27.1) with ESMTP; Tue, 01 Jun 2004 12:25:59 -0700 Received: from [127.0.0.1] (localhost [127.0.0.1]) by postfix.mail.ehatchersolutions.com (Postfix) with ESMTP id 06FF7745D54 for ; Tue, 1 Jun 2004 15:25:42 -0400 (EDT) Mime-Version: 1.0 (Apple Message framework v613) In-Reply-To: <9A02A13E0ABF5142AFB76C3477936614017907F8@exchange.cmdservices.com> References: <9A02A13E0ABF5142AFB76C3477936614017907F8@exchange.cmdservices.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <78A8D484-B401-11D8-8A05-000393A564E6@ehatchersolutions.com> Content-Transfer-Encoding: 7bit From: Erik Hatcher Subject: Re: install ant 1.6.1 on Unix Date: Tue, 1 Jun 2004 15:25:41 -0400 To: "Ant Users List" X-Mailer: Apple Mail (2.613) X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Do you have a JDK available? Or just a JRE? Try typing 'java' and 'javac' at the command-prompt. Erik On Jun 1, 2004, at 3:06 PM, Kathy Zhou wrote: > Matt, > Thank you for your response. > I try ant --execdebug -version and got the same error. > java.lang.InstantiationException: org.apache.tools.ant.Main > > at java.lang.Class.newInstance0(Class.java:291) > > at java.lang.Class.newInstance(Class.java:259) > > at > org.apache.tools.ant.launch.Launcher.run(Launcher.java:196) > > at > org.apache.tools.ant.launch.Launcher.main(Launcher.java:56) > > my setting on unix is > > > JAVA_HOME=/usr/j2se > ANT_HOME=/usr/apache-ant-1.6.1 > PATH=.:/usr/j2se/bin:/usr/apache-ant-1.6.1/bin:/bin:/lib:/usr/sbin: > usr/bin:/ > usr/local/bin:/usr/ucb > export PATH > > > Everything is fine on window. I guess I still missed something on Unix > setting. I did not see anything wrong here, any idea? Thanks. > > Kathy > >> -----Original Message----- >> From: Matt Benson [SMTP:gudnabrsam@yahoo.com] >> Sent: Tuesday, June 01, 2004 2:50 PM >> To: Ant Users List >> Subject: Re: install ant 1.6.1 on Unix >> >> Try running >> >> ant --execdebug -version >> >> This will show you exactly what command is being used >> to invoke Ant. That should give you some things to >> check. >> >> HTH, >> Matt >> >> --- Kathy Zhou wrote: >>> I have installed the latest Ant on my window NT >>> without any problem. >>> >>> Then I unzip the apache-ant-1.6.1-bin.zip downloaded >>> on Unix (SunOS 5.8 with >>> JDK1.4.1_03) and check the files. Based on >>> installation instruction, I set >>> path and ant_home on .profile. Now I got the >>> following error while I typed >>> ant -version. >>> >>> java.lang.InstantiationException: >>> org.apache.tools.ant.Main >>> at >>> java.lang.Class.newInstance0(Class.java:291) >>> at >>> java.lang.Class.newInstance(Class.java:259) >>> at >>> >> org.apache.tools.ant.launch.Launcher.run(Launcher.java:196) >>> at >>> >> org.apache.tools.ant.launch.Launcher.main(Launcher.java:56) >>> >>> >>> I do not have any crimson.jar or other XML parsers >>> in JRE/ext and I did set >>> classpath for ant as it dose not need. >>> >>> Do I need to reboot the Unix box? What else did I >>> miss? Thank you for your >>> help. >>> >>> Kathy >>> >> >> >> >> >> >> __________________________________ >> Do you Yahoo!? >> Friends. Fun. Try the all-new Yahoo! Messenger. >> http://messenger.yahoo.com/ >> >> --------------------------------------------------------------------- >> 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