You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Armin Garcia <sa...@gmail.com> on 2008/02/04 07:38:31 UTC
Problems with ANT in WINDOWS :(
hi there i have problems with ANT on windows...
i download and try to use the apache-ant-1.7.0 and apache-ant-1.6.5
I configured the system variables
set ANT_HOME=c:\ant
set JAVA_HOME=c:\jdk-1.5.0.05
set PATH=%PATH%;%ANT_HOME%\bin
the problem is when i try tu run ant by this way
ant -version or ant or some command for ant, i dont do anything
but when i try to use ant with EJBCA i recive this message
C:\ejbca_3_5_3> "C:\Documents and Settings\Dark Knight\Mis
documentos\Software\J
ava\apache-ant-1.6.5\bin\runant.pl"
java -classpath C:\APACHE~1.0/lib/ant-launcher.jar -Dant.home=C:\APACHE~1.0org
.apache.tools.ant.launch.Launcher -lib .;"C:\Archivos de
programa\Java\j2re1.4.2
_01\lib\ext\QTJava.zip";C:\Archivos de
programa\Java\jre1.6.0_02\bin;C:\Sun\SDK\
jdk\jre\bin;C:\Sun\SDK\jdk\jre\lib\ext;C:\Sun\SDK\jdk\bin;C:\Archivos de
program
a\Java\jre1.6.0_02\lib\ext\QTJava.zip;C:\Archivos de
programa\Java\jre1.6.0_02\l
ib\ext;C:\Sun\SDK\jdk\bin;C:\Sun\SDK\jdk\lib
Buildfile: build.xml
[echo] Merging available external modifications from C:\ejbca-custom.
[copy] Warning: C:\ejbca-custom not found.
Trying to override old definition of task apt
BUILD FAILED
Target "de" does not exist in the project "ejbca".
Total time: 8 seconds
MMM somebody knows what im doing wrong, or wht i need to do for solve this
problem....
thanks for all
Re: Problems with ANT in WINDOWS :(
Posted by Armin Garcia <sa...@gmail.com>.
Thanks i can resolve this problem....
thanks
On Feb 4, 2008 2:56 PM, David Weintraub <qa...@gmail.com> wrote:
> Looks like you have spaces in your -lib:
>
> -C:\Archivos de programa\Java\jre1.6.0_02\lib\ext
>
> Ant sees the -lib ending at "C:\Archivos" and "de" as your target.
>
> Your best bet is to install Java in a directory with no spaces in it.
> Something like "C:\Java".
>
> On Feb 4, 2008 1:38 AM, Armin Garcia <sa...@gmail.com> wrote:
> > hi there i have problems with ANT on windows...
> >
> > i download and try to use the apache-ant-1.7.0 and apache-ant-1.6.5
> > I configured the system variables
> >
> > set ANT_HOME=c:\ant
> > set JAVA_HOME=c:\jdk-1.5.0.05 <http://1.5.0.5/>
> > set PATH=%PATH%;%ANT_HOME%\bin
> >
> > the problem is when i try tu run ant by this way
> >
> > ant -version or ant or some command for ant, i dont do anything
> >
> > but when i try to use ant with EJBCA i recive this message
> >
> >
> > C:\ejbca_3_5_3> "C:\Documents and Settings\Dark Knight\Mis
> > documentos\Software\J
> > ava\apache-ant-1.6.5\bin\runant.pl"
> > java -classpath C:\APACHE~1.0/lib/ant-launcher.jar -
> Dant.home=C:\APACHE~1.0org
> > .apache.tools.ant.launch.Launcher -lib .;"C:\Archivos de
> > programa\Java\j2re1.4.2
> > _01\lib\ext\QTJava.zip";C:\Archivos de
> > programa\Java\jre1.6.0_02\bin;C:\Sun\SDK\
> > jdk\jre\bin;C:\Sun\SDK\jdk\jre\lib\ext;C:\Sun\SDK\jdk\bin;C:\Archivos de
> > program
> > a\Java\jre1.6.0_02\lib\ext\QTJava.zip;C:\Archivos de
> > programa\Java\jre1.6.0_02\l
> > ib\ext;C:\Sun\SDK\jdk\bin;C:\Sun\SDK\jdk\lib
> > Buildfile: build.xml
> > [echo] Merging available external modifications from
> C:\ejbca-custom.
> > [copy] Warning: C:\ejbca-custom not found.
> > Trying to override old definition of task apt
> > BUILD FAILED
> > Target "de" does not exist in the project "ejbca".
> > Total time: 8 seconds
> >
> >
> > MMM somebody knows what im doing wrong, or wht i need to do for solve
> this
> > problem....
> >
> > thanks for all
> >
>
>
>
> --
> --
> 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: Problems with ANT in WINDOWS :(
Posted by David Weintraub <qa...@gmail.com>.
Looks like you have spaces in your -lib:
-C:\Archivos de programa\Java\jre1.6.0_02\lib\ext
Ant sees the -lib ending at "C:\Archivos" and "de" as your target.
Your best bet is to install Java in a directory with no spaces in it.
Something like "C:\Java".
On Feb 4, 2008 1:38 AM, Armin Garcia <sa...@gmail.com> wrote:
> hi there i have problems with ANT on windows...
>
> i download and try to use the apache-ant-1.7.0 and apache-ant-1.6.5
> I configured the system variables
>
> set ANT_HOME=c:\ant
> set JAVA_HOME=c:\jdk-1.5.0.05
> set PATH=%PATH%;%ANT_HOME%\bin
>
> the problem is when i try tu run ant by this way
>
> ant -version or ant or some command for ant, i dont do anything
>
> but when i try to use ant with EJBCA i recive this message
>
>
> C:\ejbca_3_5_3> "C:\Documents and Settings\Dark Knight\Mis
> documentos\Software\J
> ava\apache-ant-1.6.5\bin\runant.pl"
> java -classpath C:\APACHE~1.0/lib/ant-launcher.jar -Dant.home=C:\APACHE~1.0org
> .apache.tools.ant.launch.Launcher -lib .;"C:\Archivos de
> programa\Java\j2re1.4.2
> _01\lib\ext\QTJava.zip";C:\Archivos de
> programa\Java\jre1.6.0_02\bin;C:\Sun\SDK\
> jdk\jre\bin;C:\Sun\SDK\jdk\jre\lib\ext;C:\Sun\SDK\jdk\bin;C:\Archivos de
> program
> a\Java\jre1.6.0_02\lib\ext\QTJava.zip;C:\Archivos de
> programa\Java\jre1.6.0_02\l
> ib\ext;C:\Sun\SDK\jdk\bin;C:\Sun\SDK\jdk\lib
> Buildfile: build.xml
> [echo] Merging available external modifications from C:\ejbca-custom.
> [copy] Warning: C:\ejbca-custom not found.
> Trying to override old definition of task apt
> BUILD FAILED
> Target "de" does not exist in the project "ejbca".
> Total time: 8 seconds
>
>
> MMM somebody knows what im doing wrong, or wht i need to do for solve this
> problem....
>
> thanks for all
>
--
--
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: Problems with ANT in WINDOWS :(
Posted by Steve Loughran <st...@apache.org>.
Armin Garcia wrote:
> hi there i have problems with ANT on windows...
take a look at http://wiki.apache.org/ant/InstallTroubleshooting
>
> i download and try to use the apache-ant-1.7.0 and apache-ant-1.6.5
> I configured the system variables
>
> set ANT_HOME=c:\ant
> set JAVA_HOME=c:\jdk-1.5.0.05
> set PATH=%PATH%;%ANT_HOME%\bin
> the problem is when i try tu run ant by this way
>
> ant -version or ant or some command for ant, i dont do anything
>
> but when i try to use ant with EJBCA i recive this message
>
>
> C:\ejbca_3_5_3> "C:\Documents and Settings\Dark Knight\Mis
> documentos\Software\J
> ava\apache-ant-1.6.5\bin\runant.pl"
> java -classpath C:\APACHE~1.0/lib/ant-launcher.jar -Dant.home=C:\APACHE~1.0org
> .apache.tools.ant.launch.Launcher -lib .;"C:\Archivos de
> programa\Java\j2re1.4.2
> _01\lib\ext\QTJava.zip";C:\Archivos de
> programa\Java\jre1.6.0_02\bin;C:\Sun\SDK\
> jdk\jre\bin;C:\Sun\SDK\jdk\jre\lib\ext;C:\Sun\SDK\jdk\bin;C:\Archivos de
> program
> a\Java\jre1.6.0_02\lib\ext\QTJava.zip;C:\Archivos de
> programa\Java\jre1.6.0_02\l
> ib\ext;C:\Sun\SDK\jdk\bin;C:\Sun\SDK\jdk\lib
> Buildfile: build.xml
> [echo] Merging available external modifications from C:\ejbca-custom.
> [copy] Warning: C:\ejbca-custom not found.
> Trying to override old definition of task apt
> BUILD FAILED
> Target "de" does not exist in the project "ejbca".
> Total time: 8 seconds
>
>
> MMM somebody knows what im doing wrong, or wht i need to do for solve this
> problem....
>
> thanks for all
>
--
Steve Loughran http://www.1060.org/blogxter/publish/5
Author: Ant in Action http://antbook.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org