You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Chris Calvin <ch...@myway.com> on 2008/01/11 16:04:14 UTC

ant setup


I'm using Vista with cygwin and ant 1.7..  When I create a build.xml and run ant, I get this:

cygpath: can't convert empty path
Unable to locate tools.jar.  Expected to find it in C:\Program Files\Java\jre1.6.0_03\lib\tools.jar

While I have a C:\P F\Java\jre1.6.0_03, I also have "C:\Program Files\Java\JavaEE 5 SDK"..  Here is my environment:

$ echo $CLASSPATH
/cygdrive/C/Program\ Files/Apache\ Software\ Foundation/Apache\ Ant\ 1.7.0/lib:/cygdrive/C/Program\ Files/Apache\ Software\ Foundation/Tomcat\ 6.0/lib:/cygdrive/C/Program\ Files/Java/JavaEE\ 5\ SDK/jdk/lib

$ echo $JAVA_HOME
/cygdrive/c/Program\ Files/Java/JavaEE\ 5\ SDK/jdk

$ echo $ANT_HOME
/cygdrive/C/Prorgram\ Files/Apache\ Software\ Foundation/Apache\ Ant\ 1.7.0/bin

Can anyone please help?  I'd like to get up and running and am, unfortunately, having difficulty.

Thank you!

Chris

_______________________________________________
No banners. No pop-ups. No kidding.
Make My Way  your home on the Web - http://www.myway.com



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


AW: ant setup

Posted by Ja...@rzf.fin-nrw.de.
Additionally Vista "hides" the "Program Files" directory. It can be that it is available under names.
E.g. in Germany the Explorer shows "Programme" while the cmd.exe shows "Program Files" - very obscure ...

Personally I have installed my different Ant versions into c:\ant\<version> and my JDKs into c:\jdk\<version>.
c:\ant\165           Ant 1.6.5 for checks
c:\ant\170           Ant 1.7.0 current version
c:\ant\18.1          my own build of SVN TRUNK
c:\ant\setant.bat    Batchfile for switching between Ant versions (changes PATH+ANT_HOME)
c:\jdk\130           Ant Core must be 1.3 compliant, so I need a version for test this
c:\jdk\150_12        Our company standard: Java 1.5
c:\jdk\160_02        Newest major release (I could update to 160_03 ...)
c:\jdk\docs-170_b17  Docs shouldnt change so much and be bwc ("@since 1.6")
c:\jdk\setjava.bat   Changing JDK version


Jan

> -----Ursprüngliche Nachricht-----
> Von: David Weintraub [mailto:qazwart@gmail.com] 
> Gesendet: Freitag, 11. Januar 2008 16:41
> An: Ant Users List
> Betreff: Re: ant setup
> 
> There may be a further problem: Windows doesn't like path names
> greater than 155 characters. I"ve found that installing JDKs and other
> Java components under C:\Program and Files can cause you to go over
> this limit. That plus the space issue can cause all sorts of issues.
> 
> The best way to handle this is to work with projects on the root of
> the drive and to install JDKs on the root of the drive.
> 
> On Jan 11, 2008 10:21 AM, Bizard Nicolas (KIRO 41)
> <ni...@credit-suisse.com> wrote:
> > Hi,
> > there have been some known bugs in the past with Ant and 
> Java for paths
> > including "spaces".
> > I'd give it a try with Java and Ant installed directly on C:
> >
> > Nicolas
> >
> >
> > -----Original Message-----
> > From: Chris Calvin [mailto:chrisnymets@myway.com]
> > Sent: Friday, January 11, 2008 4:04 PM
> > To: user@ant.apache.org
> > Subject: ant setup
> >
> >
> >
> > I'm using Vista with cygwin and ant 1.7..  When I create a 
> build.xml and
> > run ant, I get this:
> >
> > cygpath: can't convert empty path
> > Unable to locate tools.jar.  Expected to find it in C:\Program
> > Files\Java\jre1.6.0_03\lib\tools.jar
> >
> > While I have a C:\P F\Java\jre1.6.0_03, I also have "C:\Program
> > Files\Java\JavaEE 5 SDK"..  Here is my environment:
> >
> > $ echo $CLASSPATH
> > /cygdrive/C/Program\ Files/Apache\ Software\ Foundation/Apache\ Ant\
> > 1.7.0/lib:/cygdrive/C/Program\ Files/Apache\ Software\
> > Foundation/Tomcat\ 6.0/lib:/cygdrive/C/Program\ 
> Files/Java/JavaEE\ 5\
> > SDK/jdk/lib
> >
> > $ echo $JAVA_HOME
> > /cygdrive/c/Program\ Files/Java/JavaEE\ 5\ SDK/jdk
> >
> > $ echo $ANT_HOME
> > /cygdrive/C/Prorgram\ Files/Apache\ Software\ 
> Foundation/Apache\ Ant\
> > 1.7.0/bin
> >
> > Can anyone please help?  I'd like to get up and running and am,
> > unfortunately, having difficulty.
> >
> > Thank you!
> >
> > Chris
> >
> > _______________________________________________
> > No banners. No pop-ups. No kidding.
> > Make My Way  your home on the Web - http://www.myway.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
> >
> >
> 
> 
> 
> -- 
> --
> David Weintraub
> qazwart@gmail.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


Re: ant setup

Posted by David Weintraub <qa...@gmail.com>.
There may be a further problem: Windows doesn't like path names
greater than 155 characters. I"ve found that installing JDKs and other
Java components under C:\Program and Files can cause you to go over
this limit. That plus the space issue can cause all sorts of issues.

The best way to handle this is to work with projects on the root of
the drive and to install JDKs on the root of the drive.

On Jan 11, 2008 10:21 AM, Bizard Nicolas (KIRO 41)
<ni...@credit-suisse.com> wrote:
> Hi,
> there have been some known bugs in the past with Ant and Java for paths
> including "spaces".
> I'd give it a try with Java and Ant installed directly on C:
>
> Nicolas
>
>
> -----Original Message-----
> From: Chris Calvin [mailto:chrisnymets@myway.com]
> Sent: Friday, January 11, 2008 4:04 PM
> To: user@ant.apache.org
> Subject: ant setup
>
>
>
> I'm using Vista with cygwin and ant 1.7..  When I create a build.xml and
> run ant, I get this:
>
> cygpath: can't convert empty path
> Unable to locate tools.jar.  Expected to find it in C:\Program
> Files\Java\jre1.6.0_03\lib\tools.jar
>
> While I have a C:\P F\Java\jre1.6.0_03, I also have "C:\Program
> Files\Java\JavaEE 5 SDK"..  Here is my environment:
>
> $ echo $CLASSPATH
> /cygdrive/C/Program\ Files/Apache\ Software\ Foundation/Apache\ Ant\
> 1.7.0/lib:/cygdrive/C/Program\ Files/Apache\ Software\
> Foundation/Tomcat\ 6.0/lib:/cygdrive/C/Program\ Files/Java/JavaEE\ 5\
> SDK/jdk/lib
>
> $ echo $JAVA_HOME
> /cygdrive/c/Program\ Files/Java/JavaEE\ 5\ SDK/jdk
>
> $ echo $ANT_HOME
> /cygdrive/C/Prorgram\ Files/Apache\ Software\ Foundation/Apache\ Ant\
> 1.7.0/bin
>
> Can anyone please help?  I'd like to get up and running and am,
> unfortunately, having difficulty.
>
> Thank you!
>
> Chris
>
> _______________________________________________
> No banners. No pop-ups. No kidding.
> Make My Way  your home on the Web - http://www.myway.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
>
>



-- 
--
David Weintraub
qazwart@gmail.com

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


RE: ant setup

Posted by "Bizard Nicolas (KIRO 41)" <ni...@credit-suisse.com>.
Hi,
there have been some known bugs in the past with Ant and Java for paths
including "spaces".
I'd give it a try with Java and Ant installed directly on C:

Nicolas

-----Original Message-----
From: Chris Calvin [mailto:chrisnymets@myway.com] 
Sent: Friday, January 11, 2008 4:04 PM
To: user@ant.apache.org
Subject: ant setup



I'm using Vista with cygwin and ant 1.7..  When I create a build.xml and
run ant, I get this:

cygpath: can't convert empty path
Unable to locate tools.jar.  Expected to find it in C:\Program
Files\Java\jre1.6.0_03\lib\tools.jar

While I have a C:\P F\Java\jre1.6.0_03, I also have "C:\Program
Files\Java\JavaEE 5 SDK"..  Here is my environment:

$ echo $CLASSPATH
/cygdrive/C/Program\ Files/Apache\ Software\ Foundation/Apache\ Ant\
1.7.0/lib:/cygdrive/C/Program\ Files/Apache\ Software\
Foundation/Tomcat\ 6.0/lib:/cygdrive/C/Program\ Files/Java/JavaEE\ 5\
SDK/jdk/lib

$ echo $JAVA_HOME
/cygdrive/c/Program\ Files/Java/JavaEE\ 5\ SDK/jdk

$ echo $ANT_HOME
/cygdrive/C/Prorgram\ Files/Apache\ Software\ Foundation/Apache\ Ant\
1.7.0/bin

Can anyone please help?  I'd like to get up and running and am,
unfortunately, having difficulty.

Thank you!

Chris

_______________________________________________
No banners. No pop-ups. No kidding.
Make My Way  your home on the Web - http://www.myway.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