ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <ste...@apache.org>
Subject Re: ant not recognizing command line argument
Date Fri, 02 Dec 2005 10:07:04 GMT
Safak ├ľkmen wrote:

> CLASSPATH=.;C:\PROGRA~1\JMF21~1.1\lib\sound.jar;C:\PROGRA~1\JMF21~1.1\lib\jmf.jar;d:\PROGRA~1\JMF21~1.1\lib\sound.jar;d:\PROGRA~1\JMF21~1.1\lib\jmf.jar;C:\WINDOWS\DOWNLO~1\corteai.zip;C:\WINDOWS\DOWNLO~1\classes.zip;C:\WINDOWS\java\classes;D:\programme\jdbc\mysql-connector-java-3.1.7\


I dont like the backslash at the end of this path. Delete it and try again.

better yet, try ant -noclasspath to drop the classpath entirely, if the 
version of Ant you are running supports that option. Otherwise, erase 
teh classpath with something like:

set CLASSPATH=


We dont recommend using the CLASSPATH env variable, as it just makes a 
mess of things. You shouldnt really have .zip files on it either, only 
.jar files with manifests.

-steve




> 
> CLIENTNAME=Console
> CommonProgramFiles=C:\Programme\Gemeinsame Dateien
> COMPUTERNAME=IBM-C71A1AE9667
> ComSpec=C:\WINDOWS\system32\cmd.exe
> FP_NO_HOST_CHECK=NO
> HOMEDRIVE=C:
> HOMEPATH=\Dokumente und Einstellungen\Admin
> IBMSHARE=C:\IBMSHARE
> include=D:\programme\Microsoft Visual 
> Studio\VC98\atl\include;D:\programme\Microsoft Visual 
> Studio\VC98\mfc\include;D:\programme\Microsoft Visual Studio\VC98\include
> JAVA_HOME=D:\programme\Java\jdk1.5.0_05
> lib=D:\programme\Microsoft Visual 
> Studio\VC98\mfc\lib;D:\programme\Microsoft Visual Studio\VC98\lib
> LOGONSERVER=\\IBM-C71A1AE9667
> NewEnvironment1=C:\WINDOWS\Downloaded Program Files
> NUMBER_OF_PROCESSORS=1
> OS=Windows_NT
> OSG_FILE_PATH=d:\programme\OpenSceneGraph\data;d:\programme\OpenSceneGraph\data\Images;d:\programme\OpenSceneGraph\data\fonts

> 
> OSG_ROOT=d:\programme\OpenSceneGraph
> Path=d:\programme\texmf\miktex\bin;C:\PROGRAMME\THINKPAD\UTILITIES;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\IBMTOOLS\Python22;C:\Programme\PC-Doctor

> for Windows\services;D:\programme\WinSCP3\;D:\programme\MySQL\MySQL 
> Server 
> 4.1\bin;D:\programme\php\;D:\programme\javacc-3.2\bin;D:\programme\Subversion\bin;D:\programme\Java\jdk1.5.0_05\bin;D:\PROGRA~1\GRAPHVIZ\Graphviz\bin;D:\PROGRA~1\GRAPHVIZ\Graphviz\bin\tools;d:\programme\GTK\bin;d:\programme\doxygen\bin;D:\MATLAB\bin

> 
> PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.pyo;.pyc;.py;.pyw
> PROCESSOR_ARCHITECTURE=x86
> PROCESSOR_IDENTIFIER=x86 Family 6 Model 9 Stepping 5, GenuineIntel
> PROCESSOR_LEVEL=6
> PROCESSOR_REVISION=0905
> ProgramFiles=C:\Programme
> PROMPT=$P$G
> PYTHONCASEOK=1
> PYTHONPATH=C:\IBMTOOLS\utils\support;C:\IBMTOOLS\utils\logger
> RRU=C:\Programme\IBM\IBM Rapid Restore Ultra\
> SESSIONNAME=Console
> SystemDrive=C:
> SystemRoot=C:\WINDOWS
> TCL_LIBRARY=C:\IBMTOOLS\Python22\tcl\tcl8.4
> TK_LIBRARY=C:\IBMTOOLS\Python22\tcl\tk8.4
> TMP=C:\DOKUME~1\Admin\LOKALE~1\Temp
> tvdumpflags=8
> USERDOMAIN=IBM-C71A1AE9667
> USERNAME=Admin
> USERPROFILE=C:\Dokumente und Einstellungen\Admin
> windir=C:\WINDOWS
> 
> C:\WINDOWS\system32>
> 
> 
> 
> 
> Steve Loughran wrote:
> 
>> Safak ├ľkmen wrote:
>>
>>> ANT_HOME was pointing to "D:\programme\ant".
>>>
>>> I'm sorry. I just don't know what's wrong.
>>>
>>> I have a command line utility fsum (FastSum) which I tried with
>>> command line arguments (fsum something.zip something.zip.md5) and it
>>> works fine. I think that means cmd is recognizing command line
>>> argument. I will try installing ant fresh.
>>>
>>> Matt Benson wrote:
>>
>>
>> something is wrong with your command line env. probalby the classpath
>> or something. List your entire environment by typing
>>
>> set
>>
>> at the command prompt; post the results. I would suspect trouble in
>>
>> CLASSPATH
>> PATH
>>
>> You can also edit ant.bat, comment out the @echo off line and see what
>> command line is being constructed.
>>
>> ---------------------------------------------------------------------
>> 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
> 


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


Mime
View raw message