Well, I was so desperate to get it working that I went back to the install docs that I haven't read since I installed ant the first ever time. And right there it told me that I need to have a REALLY short directory name for ant on Windows 95/98 and I assumed ME. Once I installed ant in c:\ant, everything just worked. I wish it wasn't like that, but I can live with it.
Thanks to everyone for all of the suggestions. Now I can go back to lurking on the list and just being a happy ant user. :-) Simon ----------------------------------------------------------------- Simon P. Chappell [EMAIL PROTECTED] Java Programming Specialist www.landsend.com Lands' End, Inc. (608) 935-4526 >-----Original Message----- >From: Dominique Devienne [mailto:[EMAIL PROTECTED]] >Sent: Monday, January 27, 2003 5:14 PM >To: 'Ant Users List' >Subject: RE: NoClassDefFound trying to run ant > > >Well, aren't you saying you *really* want it to work ;-) > >Another solution that might be better is to start Ant yourself using >something simple like: > >java -Dant.home=C:\pro\ant1.5.1 -jar C:\pro\ant1.5.1\lib\ant.jar ... > >This will work great until you start using tasks that have external >dependencies, like <junit>. Then, what you could do, is put >the dependent >JARs in C:\pro\ant1.5.1\lib, and edit ant.jar's Manifest to adjust the >Class-Path entry. > >DOS *is* really a crappy shell, even in its WinNT/2K/XP variants. --DD > >-----Original Message----- >From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] >Sent: Monday, January 27, 2003 4:49 PM >To: Ant Users List >Subject: RE: NoClassDefFound trying to run ant > >I haven't tried that. Seems a little "over the top" to install another >programming language so that I can run my Java build system! ;-) > >Would it make sense to write a 98/ME specific ant.bat? I'm way >rusty on my >DOS scripting, but it might be a useful thing for the project >to have and I >REALLY want to get ant working on this box. > >Simon > >>-----Original Message----- >>From: Dominique Devienne [mailto:[EMAIL PROTECTED]] >>Sent: Monday, January 27, 2003 4:45 PM >>To: 'Ant Users List' >>Subject: RE: NoClassDefFound trying to run ant >> >> >>Have you tried installing Perl or Python and use ant.pl or >>ant.py instead of >>the very flaky on Win95/98/ME ant.bat??? --DD >> >>-----Original Message----- >>From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] >>Sent: Monday, January 27, 2003 4:39 PM >>To: Ant Users List; Jim Cobban >>Subject: RE: NoClassDefFound trying to run ant >> >>I'm having the same issue on Windows ME (see the post about >four emails >>before yours) and I tried the same thing and had the same >>result. It seems >>to me that 98 and ME have quite the amount in common. This is >>a huge issue >>for me as I build everything in ant these days. I'm even converting my >>website over to XML/XSL/XSLT and ant! >> >>Simon >> >>>-----Original Message----- >>>From: Jim Cobban [mailto:[EMAIL PROTECTED]] >>>Sent: Monday, January 27, 2003 4:40 PM >>>To: [EMAIL PROTECTED] >>>Subject: NoClassDefFound trying to run ant >>> >>> >>>While I wait for a solution to the problem in ant.bat I have >>>replaced the 'if exist' statement with an unconditional goto. >>> >>>Now I get: >>> >>>D:\MyPrograms\JavaProgs\CensusServlet\ReadXls>ant >>>Exception in thread "main" java.lang.NoClassDefFoundError: >>>org/apache/tools/ant/Main >>> >>>So I assume that the classpath is wrong. However there is >>>nothing in the installation instructions about setting the classpath. >>> >>>Personally I think there is a problem with the installation >>>instructions. >>> >>>Jim Cobban [EMAIL PROTECTED] >>>34 Palomino Dr. >>>Kanata, ON, CANADA >>>K2M 1M1 >>>+1-613-592-9438 >>> >> >>-- >>To unsubscribe, e-mail: ><mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: ><mailto:[EMAIL PROTECTED]> > >-- >To unsubscribe, >e-mail: <mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: ><mailto:[EMAIL PROTECTED]> > > >-- >To unsubscribe, >e-mail: <mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: ><mailto:[EMAIL PROTECTED]> > >-- >To unsubscribe, >e-mail: <mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: ><mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
