Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 97142 invoked from network); 9 Jun 2009 20:11:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Jun 2009 20:11:04 -0000 Received: (qmail 55753 invoked by uid 500); 9 Jun 2009 20:11:14 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 55677 invoked by uid 500); 9 Jun 2009 20:11:14 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 55667 invoked by uid 99); 9 Jun 2009 20:11:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Jun 2009 20:11:14 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sfloess@nc.rr.com designates 75.180.132.121 as permitted sender) Received: from [75.180.132.121] (HELO cdptpa-omtalb.mail.rr.com) (75.180.132.121) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Jun 2009 20:11:04 +0000 Received: from flossware.homelinux.org ([66.57.231.67]) by cdptpa-omta03.mail.rr.com with ESMTP id <20090609201042690.RDOY26412@cdptpa-omta03.mail.rr.com> for ; Tue, 9 Jun 2009 20:10:42 +0000 Received: from development-vm.adminserver.flossware.com (development-vm.adminserver.flossware.com [192.168.168.226]) by flossware.homelinux.org (Postfix) with ESMTP id 151D8217005C for ; Tue, 9 Jun 2009 16:10:42 -0400 (EDT) Date: Tue, 9 Jun 2009 16:10:41 -0400 (EDT) From: "Scot P. Floess" X-X-Sender: sfloess@development-vm.adminserver To: Ant Users List Subject: Re: Ant works in Dos Window but not Cygwin Window In-Reply-To: <2ee5b0120906091244p34ac9fccpd9c548e38e7cbd94@mail.gmail.com> Message-ID: References: <23948225.post@talk.nabble.com> <2ee5b0120906091244p34ac9fccpd9c548e38e7cbd94@mail.gmail.com> User-Agent: Alpine 2.00 (LRH 1167 2008-08-23) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="471337409-1389453035-1244578242=:7544" X-Virus-Checked: Checked by ClamAV on apache.org --471337409-1389453035-1244578242=:7544 Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8BIT Well, you might just want to swap the slashes around and be sure to escape any spaces that may be in the contents of ANT_HOME like: ANT_HOME=c:/java/ant\ 1.7.1 On Tue, 9 Jun 2009, Chad McHenry wrote: > $ANT_HOME and $JAVA_HOME should be windows format, e.g. > > ANT_HOME=C:\java\ant > JAVA_HOME=C:\java\jdk > > I set these via the system so they are available in DOS or bash. > > When Java is running on a windows machine (regardless of cygwin's > presence) it wants windows style paths. We also have to quote > classpaths on the command line, since windows path separator is ';' > (unix is ':') and cygwin sees ';' as the end of a command. Luckily > java doesn't differentiate between '/' or '\' so we don't need to > worry about escaping them: > > java -cp "c:/java/foo/foo.jar;c:/java/bar/bar.jar" MainClass > > On Tue, Jun 9, 2009 at 3:01 PM, Scot P. Floess wrote: >> >> How is ANT_HOME defined? >> >> I think you'll have to be careful if you are trying the c:\ as your ANT_HOME >> - perhaps /cygdrive/c and the rest of the path? >> >> On Tue, 9 Jun 2009, jaybytez wrote: >> >>> >>> I just pulled down the latest 1.7.1 to try and resolve an issue I have >>> been >>> having lately with my Ant instance 1.7.0. >>> >>> I am not sure if I should really be posting this on Cygwin's forum, but I >>> can open an instance of DOS prompt and type ant -version and correctly get >>> the version echoed to the screen. �If I open up a cygwin window and type >>> ant >>> -version, I get the following error: >>> >>> $ ant -version >>> Exception in thread "main" java.lang.NoClassDefFoundError: >>> org/apache/tools/ant/ >>> launch/Launcher >>> Caused by: java.lang.ClassNotFoundException: >>> org.apache.tools.ant.launch.Launche >>> r >>> � � � at java.net.URLClassLoader$1.run(URLClassLoader.java:200) >>> � � � at java.security.AccessController.doPrivileged(Native Method) >>> � � � at java.net.URLClassLoader.findClass(URLClassLoader.java:188) >>> � � � at java.lang.ClassLoader.loadClass(ClassLoader.java:306) >>> � � � at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276) >>> � � � at java.lang.ClassLoader.loadClass(ClassLoader.java:251) >>> � � � at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) >>> >>> My ANT_HOME is set correctly, and I include ANT_HOME/bin in the PATH >>> environment variable as well. >>> >>> Is there anything else I should be looking at to resolve this? >>> >>> Thanks, jay >>> -- >>> View this message in context: >>> http://www.nabble.com/Ant-works-in-Dos-Window-but-not-Cygwin-Window-tp23948225p23948225.html >>> Sent from the Ant - Users mailing list archive at Nabble.com. >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >>> For additional commands, e-mail: user-help@ant.apache.org >>> >>> >> >> Scot P. Floess >> 27 Lake Royale >> Louisburg, NC �27549 >> >> 252-478-8087 (Home) >> 919-890-8117 (Work) >> >> Chief Architect JPlate � http://sourceforge.net/projects/jplate >> Chief Architect JavaPIM �http://sourceforge.net/projects/javapim >> >> Architect Keros � � � � �http://sourceforge.net/projects/keros >> >> --------------------------------------------------------------------- >> 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 > > Scot P. Floess 27 Lake Royale Louisburg, NC 27549 252-478-8087 (Home) 919-890-8117 (Work) Chief Architect JPlate http://sourceforge.net/projects/jplate Chief Architect JavaPIM http://sourceforge.net/projects/javapim Architect Keros http://sourceforge.net/projects/keros --471337409-1389453035-1244578242=:7544 Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --471337409-1389453035-1244578242=:7544--