I solved the problem by specifying the class path relatively. How does that affect?
-----Original Message----- From: Anderson, Rob (Global Trade) [mailto:[EMAIL PROTECTED] Sent: Thursday, July 20, 2006 12:08 AM To: Ant Users List Subject: RE: Error using ant under cygwin like environment This error indicates that the classpath was not set up properly, or jars are missing from the classpath. This can happen if ANT_HOME is not set properly. Another possibility is that you are not running the ant you think you are. Run "which ant". What is the result? In your case, it should be /cygdrive/d/ants/apache-ant-1.6.5/bin/ant. If so, edit the file /cygdrive/d/ants/apache-ant-1.6.5/bin/ant, adding the following before the last line... echo $ant_exec_command Run ant again and send the output. -Rob A > -----Original Message----- > From: Mayuresh Kshirsagar [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 19, 2006 4:16 AM > To: Ant Users List > Subject: RE: Error using ant under cygwin like environment > > As I pasted. The path is set correctly. > > -----Original Message----- > From: Rich Goldman [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 18, 2006 10:27 PM > To: Ant Users List > Subject: Re: Error using ant under cygwin like environment > > Should your path say "ant" instead of "ants"? > > Mayuresh Kshirsagar wrote: > > >I am trying to use ant with cygwin. But I am always getting > the error: > > > > > > > >mayuresh% ant > > > >Exception in thread "main" java.lang.NoClassDefFoundError: > >org/apache/tools/ant/launch/Launcher > > > > > > > >I have set the ANT_HOME correctly: > > > >mayuresh% echo $ANT_HOME > > > >/cygdrive/d/ants/apache-ant-1.6.5 > > > > > > > >What can I do to solve this? I didn't find anything concrete on the > net. > > > > > > > >Regards, > > > >Mayuresh. > > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] For > additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] For > additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]