ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin" <mgai...@hotmail.com>
Subject Re: NoClassDefFound trying to run ant [Solved]
Date Sun, 28 Jul 2002 12:09:47 GMT
Hello Simon-
Well I guess you could blame the developers of the command shell
If you had used another shell (MKSTools) etc you would not have that problem
But If you desire to preserve the directory long names then issure this
command
dir /AD /X
Observe abbrev name that corresponds to the directory you desire e.g.
C:\Program Files              C:\PROGRA~1
then in all your scripts substitute C:\Program Files with C:\PROGRA~1
Keep us apprised,
-Martin

----- Original Message -----
From: "Chappell, Simon P" <Simon.Chappell@landsend.com>
To: "Ant Users List" <ant-user@jakarta.apache.org>
Sent: Tuesday, January 28, 2003 10:21 AM
Subject: RE: NoClassDefFound trying to run ant [Solved]


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                     simon.chappell@landsend.com
Java Programming Specialist                      www.landsend.com
Lands' End, Inc.                                   (608) 935-4526


>-----Original Message-----
>From: Dominique Devienne [mailto:DDevienne@lgc.com]
>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:Simon.Chappell@landsend.com]
>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:DDevienne@lgc.com]
>>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:Simon.Chappell@landsend.com]
>>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:jcobban@magma.ca]
>>>Sent: Monday, January 27, 2003 4:40 PM
>>>To: ant-user@jakarta.apache.org
>>>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   jcobban@magma.ca
>>>34 Palomino Dr.
>>>Kanata, ON, CANADA
>>>K2M 1M1
>>>+1-613-592-9438
>>>
>>
>>--
>>To unsubscribe, e-mail:
><mailto:ant-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail:
><mailto:ant-user-help@jakarta.apache.org>
>
>--
>To unsubscribe,
>e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail:
><mailto:ant-user-help@jakarta.apache.org>
>
>
>--
>To unsubscribe,
>e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail:
><mailto:ant-user-help@jakarta.apache.org>
>
>--
>To unsubscribe,
>e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail:
><mailto:ant-user-help@jakarta.apache.org>
>
>

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message