ant.bat error message

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

ant.bat error message

BJ Freeman
Just updated trunk and did an
./ant -p
on windows (ant.bat).
got this.

C:\projects\java\ofbiz_patch>ECHO OFF

C:\projects\java\ofbiz_patch>\jsdk\jdk1.6.0_18\bin\java -jar
framework/base/lib/ant-launcher-1.7.1.jar framework/base/lib/ant -p
Buildfile: build.xml
C:\projects\java\ofbiz_patch\build.xml:22: The following error occurred
while executing this line:
C:\projects\java\ofbiz_patch\macros.xml:158: Problem: failed to create
task or type scriptdef
Cause: the class org.apache.tools.ant.taskdefs.optional.script.ScriptDef
was not found.
         This looks like one of Ant's optional components.
Action: Check that the appropriate optional JAR exists in
         -C:\projects\java\ofbiz_patch\framework\base\lib
         -C:\Documents and Settings\BJ Freeman\.ant\lib
         -a directory added on the command line with the -lib argument

Do not panic, this is a common problem.
The commonest cause is a missing JAR.

This is not a bug; it is a configuration problem

=========================
BJ Freeman
Strategic Power Office with Supplier Automation  <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
Specialtymarket.com  <http://www.specialtymarket.com/>
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man

Reply | Threaded
Open this post in threaded view
|

Re: ant.bat error message

Jacques Le Roux
Administrator
Did you try try "ant -p" ?
./ant -p is for Linux

Jacques

From: "BJ Freeman" <[hidden email]>

> Just updated trunk and did an
> ./ant -p
> on windows (ant.bat).
> got this.
>
> C:\projects\java\ofbiz_patch>ECHO OFF
>
> C:\projects\java\ofbiz_patch>\jsdk\jdk1.6.0_18\bin\java -jar
> framework/base/lib/ant-launcher-1.7.1.jar framework/base/lib/ant -p
> Buildfile: build.xml
> C:\projects\java\ofbiz_patch\build.xml:22: The following error occurred
> while executing this line:
> C:\projects\java\ofbiz_patch\macros.xml:158: Problem: failed to create
> task or type scriptdef
> Cause: the class org.apache.tools.ant.taskdefs.optional.script.ScriptDef
> was not found.
>         This looks like one of Ant's optional components.
> Action: Check that the appropriate optional JAR exists in
>         -C:\projects\java\ofbiz_patch\framework\base\lib
>         -C:\Documents and Settings\BJ Freeman\.ant\lib
>         -a directory added on the command line with the -lib argument
>
> Do not panic, this is a common problem.
> The commonest cause is a missing JAR.
>
> This is not a bug; it is a configuration problem
>
> =========================
> BJ Freeman
> Strategic Power Office with Supplier Automation  <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
> Specialtymarket.com  <http://www.specialtymarket.com/>
> Systems Integrator-- Glad to Assist
>
> Chat  Y! messenger: bjfr33man
>

Reply | Threaded
Open this post in threaded view
|

Re: ant.bat error message

BJ Freeman
actually ./ant -p works in windows if you in the directory of the bat file.
as you see it worked just an error.

Jacques Le Roux sent the following on 12/1/2010 11:38 PM:

> Did you try try "ant -p" ?
> ./ant -p is for Linux
>
> Jacques
>
> From: "BJ Freeman" <[hidden email]>
>> Just updated trunk and did an
>> ./ant -p
>> on windows (ant.bat).
>> got this.
>>
>> C:\projects\java\ofbiz_patch>ECHO OFF
>>
>> C:\projects\java\ofbiz_patch>\jsdk\jdk1.6.0_18\bin\java -jar
>> framework/base/lib/ant-launcher-1.7.1.jar framework/base/lib/ant -p
>> Buildfile: build.xml
>> C:\projects\java\ofbiz_patch\build.xml:22: The following error
>> occurred while executing this line:
>> C:\projects\java\ofbiz_patch\macros.xml:158: Problem: failed to create
>> task or type scriptdef
>> Cause: the class
>> org.apache.tools.ant.taskdefs.optional.script.ScriptDef was not found.
>> This looks like one of Ant's optional components.
>> Action: Check that the appropriate optional JAR exists in
>> -C:\projects\java\ofbiz_patch\framework\base\lib
>> -C:\Documents and Settings\BJ Freeman\.ant\lib
>> -a directory added on the command line with the -lib argument
>>
>> Do not panic, this is a common problem.
>> The commonest cause is a missing JAR.
>>
>> This is not a bug; it is a configuration problem
>>
>> =========================
>> BJ Freeman
>> Strategic Power Office with Supplier Automation
>> <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
>> Specialtymarket.com <http://www.specialtymarket.com/>
>> Systems Integrator-- Glad to Assist
>>
>> Chat Y! messenger: bjfr33man
>>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: ant.bat error message

Jacques Le Roux
Administrator
It does not work for me, this is what I get

Microsoft Windows XP [version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

D:\workspace\ofbizDev>dir ant.bat
 Le volume dans le lecteur D s'appelle Secondaire
 Le numéro de série du volume est 441F-6A20

 Répertoire de D:\workspace\ofbizDev

15/09/2010  23:14             1 153 ant.bat
               1 fichier(s)            1 153 octets
               0 Rép(s)  147 379 732 480 octets libres

D:\workspace\ofbizDev>./ant.bat -p
'.' n'est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.

Which means
''. is not recognized as internal command
or external, operable program or batch file.

Jacques

From: "BJ Freeman" <[hidden email]>

> actually ./ant -p works in windows if you in the directory of the bat file.
> as you see it worked just an error.
>
> Jacques Le Roux sent the following on 12/1/2010 11:38 PM:
>> Did you try try "ant -p" ?
>> ./ant -p is for Linux
>>
>> Jacques
>>
>> From: "BJ Freeman" <[hidden email]>
>>> Just updated trunk and did an
>>> ./ant -p
>>> on windows (ant.bat).
>>> got this.
>>>
>>> C:\projects\java\ofbiz_patch>ECHO OFF
>>>
>>> C:\projects\java\ofbiz_patch>\jsdk\jdk1.6.0_18\bin\java -jar
>>> framework/base/lib/ant-launcher-1.7.1.jar framework/base/lib/ant -p
>>> Buildfile: build.xml
>>> C:\projects\java\ofbiz_patch\build.xml:22: The following error
>>> occurred while executing this line:
>>> C:\projects\java\ofbiz_patch\macros.xml:158: Problem: failed to create
>>> task or type scriptdef
>>> Cause: the class
>>> org.apache.tools.ant.taskdefs.optional.script.ScriptDef was not found.
>>> This looks like one of Ant's optional components.
>>> Action: Check that the appropriate optional JAR exists in
>>> -C:\projects\java\ofbiz_patch\framework\base\lib
>>> -C:\Documents and Settings\BJ Freeman\.ant\lib
>>> -a directory added on the command line with the -lib argument
>>>
>>> Do not panic, this is a common problem.
>>> The commonest cause is a missing JAR.
>>>
>>> This is not a bug; it is a configuration problem
>>>
>>> =========================
>>> BJ Freeman
>>> Strategic Power Office with Supplier Automation
>>> <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
>>> Specialtymarket.com <http://www.specialtymarket.com/>
>>> Systems Integrator-- Glad to Assist
>>>
>>> Chat Y! messenger: bjfr33man
>>>
>>
>>
>


Reply | Threaded
Open this post in threaded view
|

Re: ant.bat error message

BJ Freeman
what can I say. (embarrassed)
you are correct.
however the error message is from the bat running.


=========================
BJ Freeman
Strategic Power Office with Supplier Automation  <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
Specialtymarket.com  <http://www.specialtymarket.com/>
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man


Jacques Le Roux sent the following on 12/2/2010 2:47 AM:

> It does not work for me, this is what I get
>
> Microsoft Windows XP [version 5.1.2600]
> (C) Copyright 1985-2001 Microsoft Corp.
>
> D:\workspace\ofbizDev>dir ant.bat
> Le volume dans le lecteur D s'appelle Secondaire
> Le numéro de série du volume est 441F-6A20
>
> Répertoire de D:\workspace\ofbizDev
>
> 15/09/2010 23:14 1 153 ant.bat
> 1 fichier(s) 1 153 octets
> 0 Rép(s) 147 379 732 480 octets libres
>
> D:\workspace\ofbizDev>./ant.bat -p
> '.' n'est pas reconnu en tant que commande interne
> ou externe, un programme exécutable ou un fichier de commandes.
>
> Which means
> ''. is not recognized as internal command
> or external, operable program or batch file.
>
> Jacques
>
> From: "BJ Freeman" <[hidden email]>
>> actually ./ant -p works in windows if you in the directory of the bat
>> file.
>> as you see it worked just an error.
>>
>> Jacques Le Roux sent the following on 12/1/2010 11:38 PM:
>>> Did you try try "ant -p" ?
>>> ./ant -p is for Linux
>>>
>>> Jacques
>>>
>>> From: "BJ Freeman" <[hidden email]>
>>>> Just updated trunk and did an
>>>> ./ant -p
>>>> on windows (ant.bat).
>>>> got this.
>>>>
>>>> C:\projects\java\ofbiz_patch>ECHO OFF
>>>>
>>>> C:\projects\java\ofbiz_patch>\jsdk\jdk1.6.0_18\bin\java -jar
>>>> framework/base/lib/ant-launcher-1.7.1.jar framework/base/lib/ant -p
>>>> Buildfile: build.xml
>>>> C:\projects\java\ofbiz_patch\build.xml:22: The following error
>>>> occurred while executing this line:
>>>> C:\projects\java\ofbiz_patch\macros.xml:158: Problem: failed to create
>>>> task or type scriptdef
>>>> Cause: the class
>>>> org.apache.tools.ant.taskdefs.optional.script.ScriptDef was not found.
>>>> This looks like one of Ant's optional components.
>>>> Action: Check that the appropriate optional JAR exists in
>>>> -C:\projects\java\ofbiz_patch\framework\base\lib
>>>> -C:\Documents and Settings\BJ Freeman\.ant\lib
>>>> -a directory added on the command line with the -lib argument
>>>>
>>>> Do not panic, this is a common problem.
>>>> The commonest cause is a missing JAR.
>>>>
>>>> This is not a bug; it is a configuration problem
>>>>
>>>> =========================
>>>> BJ Freeman
>>>> Strategic Power Office with Supplier Automation
>>>> <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
>>>> Specialtymarket.com <http://www.specialtymarket.com/>
>>>> Systems Integrator-- Glad to Assist
>>>>
>>>> Chat Y! messenger: bjfr33man
>>>>
>>>
>>>
>>
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: ant.bat error message

Jacques Le Roux
Administrator
In reply to this post by Jacques Le Roux
I remember I have already seen this "message". I can't remember exactly the circumstance from the top of my head. But I remember it
was my mistake, not sure it's exactly the same though..
Could be that you have another (older) ant version in your Windows path and it can't be invoked

Jacques

From: "Jacques Le Roux" <[hidden email]>

> It does not work for me, this is what I get
>
> Microsoft Windows XP [version 5.1.2600]
> (C) Copyright 1985-2001 Microsoft Corp.
>
> D:\workspace\ofbizDev>dir ant.bat
> Le volume dans le lecteur D s'appelle Secondaire
> Le numéro de série du volume est 441F-6A20
>
> Répertoire de D:\workspace\ofbizDev
>
> 15/09/2010  23:14             1 153 ant.bat
>               1 fichier(s)            1 153 octets
>               0 Rép(s)  147 379 732 480 octets libres
>
> D:\workspace\ofbizDev>./ant.bat -p
> '.' n'est pas reconnu en tant que commande interne
> ou externe, un programme exécutable ou un fichier de commandes.
>
> Which means
> ''. is not recognized as internal command
> or external, operable program or batch file.
>
> Jacques
>
> From: "BJ Freeman" <[hidden email]>
>> actually ./ant -p works in windows if you in the directory of the bat file.
>> as you see it worked just an error.
>>
>> Jacques Le Roux sent the following on 12/1/2010 11:38 PM:
>>> Did you try try "ant -p" ?
>>> ./ant -p is for Linux
>>>
>>> Jacques
>>>
>>> From: "BJ Freeman" <[hidden email]>
>>>> Just updated trunk and did an
>>>> ./ant -p
>>>> on windows (ant.bat).
>>>> got this.
>>>>
>>>> C:\projects\java\ofbiz_patch>ECHO OFF
>>>>
>>>> C:\projects\java\ofbiz_patch>\jsdk\jdk1.6.0_18\bin\java -jar
>>>> framework/base/lib/ant-launcher-1.7.1.jar framework/base/lib/ant -p
>>>> Buildfile: build.xml
>>>> C:\projects\java\ofbiz_patch\build.xml:22: The following error
>>>> occurred while executing this line:
>>>> C:\projects\java\ofbiz_patch\macros.xml:158: Problem: failed to create
>>>> task or type scriptdef
>>>> Cause: the class
>>>> org.apache.tools.ant.taskdefs.optional.script.ScriptDef was not found.
>>>> This looks like one of Ant's optional components.
>>>> Action: Check that the appropriate optional JAR exists in
>>>> -C:\projects\java\ofbiz_patch\framework\base\lib
>>>> -C:\Documents and Settings\BJ Freeman\.ant\lib
>>>> -a directory added on the command line with the -lib argument
>>>>
>>>> Do not panic, this is a common problem.
>>>> The commonest cause is a missing JAR.
>>>>
>>>> This is not a bug; it is a configuration problem
>>>>
>>>> =========================
>>>> BJ Freeman
>>>> Strategic Power Office with Supplier Automation
>>>> <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
>>>> Specialtymarket.com <http://www.specialtymarket.com/>
>>>> Systems Integrator-- Glad to Assist
>>>>
>>>> Chat Y! messenger: bjfr33man
>>>>
>>>
>>>
>>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: ant.bat error message

BJ Freeman
C:\projects\java\ofbiz_patch>ant -version
C:\projects\java\ofbiz_patch>ECHO OFF
C:\projects\java\ofbiz_patch>\jsdk\jdk1.6.0_18\bin\java -jar
framework/base/lib/ant-launcher-1.7.1.jar framework/base/lib/ant -version
Apache Ant version 1.7.1 compiled on June 27 2008

sigh taking nap.. maybe fresh mind will see the error
thanks.

=========================
BJ Freeman
Strategic Power Office with Supplier Automation  <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
Specialtymarket.com  <http://www.specialtymarket.com/>
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man


Jacques Le Roux sent the following on 12/2/2010 3:17 AM:

> I remember I have already seen this "message". I can't remember exactly
> the circumstance from the top of my head. But I remember it was my
> mistake, not sure it's exactly the same though..
> Could be that you have another (older) ant version in your Windows path
> and it can't be invoked
>
> Jacques
>
> From: "Jacques Le Roux" <[hidden email]>
>> It does not work for me, this is what I get
>>
>> Microsoft Windows XP [version 5.1.2600]
>> (C) Copyright 1985-2001 Microsoft Corp.
>>
>> D:\workspace\ofbizDev>dir ant.bat
>> Le volume dans le lecteur D s'appelle Secondaire
>> Le numéro de série du volume est 441F-6A20
>>
>> Répertoire de D:\workspace\ofbizDev
>>
>> 15/09/2010 23:14 1 153 ant.bat
>> 1 fichier(s) 1 153 octets
>> 0 Rép(s) 147 379 732 480 octets libres
>>
>> D:\workspace\ofbizDev>./ant.bat -p
>> '.' n'est pas reconnu en tant que commande interne
>> ou externe, un programme exécutable ou un fichier de commandes.
>>
>> Which means
>> ''. is not recognized as internal command
>> or external, operable program or batch file.
>>
>> Jacques
>>
>> From: "BJ Freeman" <[hidden email]>
>>> actually ./ant -p works in windows if you in the directory of the bat
>>> file.
>>> as you see it worked just an error.
>>>
>>> Jacques Le Roux sent the following on 12/1/2010 11:38 PM:
>>>> Did you try try "ant -p" ?
>>>> ./ant -p is for Linux
>>>>
>>>> Jacques
>>>>
>>>> From: "BJ Freeman" <[hidden email]>
>>>>> Just updated trunk and did an
>>>>> ./ant -p
>>>>> on windows (ant.bat).
>>>>> got this.
>>>>>
>>>>> C:\projects\java\ofbiz_patch>ECHO OFF
>>>>>
>>>>> C:\projects\java\ofbiz_patch>\jsdk\jdk1.6.0_18\bin\java -jar
>>>>> framework/base/lib/ant-launcher-1.7.1.jar framework/base/lib/ant -p
>>>>> Buildfile: build.xml
>>>>> C:\projects\java\ofbiz_patch\build.xml:22: The following error
>>>>> occurred while executing this line:
>>>>> C:\projects\java\ofbiz_patch\macros.xml:158: Problem: failed to create
>>>>> task or type scriptdef
>>>>> Cause: the class
>>>>> org.apache.tools.ant.taskdefs.optional.script.ScriptDef was not found.
>>>>> This looks like one of Ant's optional components.
>>>>> Action: Check that the appropriate optional JAR exists in
>>>>> -C:\projects\java\ofbiz_patch\framework\base\lib
>>>>> -C:\Documents and Settings\BJ Freeman\.ant\lib
>>>>> -a directory added on the command line with the -lib argument
>>>>>
>>>>> Do not panic, this is a common problem.
>>>>> The commonest cause is a missing JAR.
>>>>>
>>>>> This is not a bug; it is a configuration problem
>>>>>
>>>>> =========================
>>>>> BJ Freeman
>>>>> Strategic Power Office with Supplier Automation
>>>>> <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
>>>>> Specialtymarket.com <http://www.specialtymarket.com/>
>>>>> Systems Integrator-- Glad to Assist
>>>>>
>>>>> Chat Y! messenger: bjfr33man
>>>>>
>>>>
>>>>
>>>
>>
>>
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: ant.bat error message

Jacques Le Roux
Administrator
You should try ./ant -version

Jacques

From: "BJ Freeman" <[hidden email]>

> C:\projects\java\ofbiz_patch>ant -version
> C:\projects\java\ofbiz_patch>ECHO OFF
> C:\projects\java\ofbiz_patch>\jsdk\jdk1.6.0_18\bin\java -jar framework/base/lib/ant-launcher-1.7.1.jar
> framework/base/lib/ant -version
> Apache Ant version 1.7.1 compiled on June 27 2008
>
> sigh taking nap.. maybe fresh mind will see the error
> thanks.
>
> =========================
> BJ Freeman
> Strategic Power Office with Supplier Automation  <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
> Specialtymarket.com  <http://www.specialtymarket.com/>
> Systems Integrator-- Glad to Assist
>
> Chat  Y! messenger: bjfr33man
>
>
> Jacques Le Roux sent the following on 12/2/2010 3:17 AM:
>> I remember I have already seen this "message". I can't remember exactly
>> the circumstance from the top of my head. But I remember it was my
>> mistake, not sure it's exactly the same though..
>> Could be that you have another (older) ant version in your Windows path
>> and it can't be invoked
>>
>> Jacques
>>
>> From: "Jacques Le Roux" <[hidden email]>
>>> It does not work for me, this is what I get
>>>
>>> Microsoft Windows XP [version 5.1.2600]
>>> (C) Copyright 1985-2001 Microsoft Corp.
>>>
>>> D:\workspace\ofbizDev>dir ant.bat
>>> Le volume dans le lecteur D s'appelle Secondaire
>>> Le numéro de série du volume est 441F-6A20
>>>
>>> Répertoire de D:\workspace\ofbizDev
>>>
>>> 15/09/2010 23:14 1 153 ant.bat
>>> 1 fichier(s) 1 153 octets
>>> 0 Rép(s) 147 379 732 480 octets libres
>>>
>>> D:\workspace\ofbizDev>./ant.bat -p
>>> '.' n'est pas reconnu en tant que commande interne
>>> ou externe, un programme exécutable ou un fichier de commandes.
>>>
>>> Which means
>>> ''. is not recognized as internal command
>>> or external, operable program or batch file.
>>>
>>> Jacques
>>>
>>> From: "BJ Freeman" <[hidden email]>
>>>> actually ./ant -p works in windows if you in the directory of the bat
>>>> file.
>>>> as you see it worked just an error.
>>>>
>>>> Jacques Le Roux sent the following on 12/1/2010 11:38 PM:
>>>>> Did you try try "ant -p" ?
>>>>> ./ant -p is for Linux
>>>>>
>>>>> Jacques
>>>>>
>>>>> From: "BJ Freeman" <[hidden email]>
>>>>>> Just updated trunk and did an
>>>>>> ./ant -p
>>>>>> on windows (ant.bat).
>>>>>> got this.
>>>>>>
>>>>>> C:\projects\java\ofbiz_patch>ECHO OFF
>>>>>>
>>>>>> C:\projects\java\ofbiz_patch>\jsdk\jdk1.6.0_18\bin\java -jar
>>>>>> framework/base/lib/ant-launcher-1.7.1.jar framework/base/lib/ant -p
>>>>>> Buildfile: build.xml
>>>>>> C:\projects\java\ofbiz_patch\build.xml:22: The following error
>>>>>> occurred while executing this line:
>>>>>> C:\projects\java\ofbiz_patch\macros.xml:158: Problem: failed to create
>>>>>> task or type scriptdef
>>>>>> Cause: the class
>>>>>> org.apache.tools.ant.taskdefs.optional.script.ScriptDef was not found.
>>>>>> This looks like one of Ant's optional components.
>>>>>> Action: Check that the appropriate optional JAR exists in
>>>>>> -C:\projects\java\ofbiz_patch\framework\base\lib
>>>>>> -C:\Documents and Settings\BJ Freeman\.ant\lib
>>>>>> -a directory added on the command line with the -lib argument
>>>>>>
>>>>>> Do not panic, this is a common problem.
>>>>>> The commonest cause is a missing JAR.
>>>>>>
>>>>>> This is not a bug; it is a configuration problem
>>>>>>
>>>>>> =========================
>>>>>> BJ Freeman
>>>>>> Strategic Power Office with Supplier Automation
>>>>>> <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
>>>>>> Specialtymarket.com <http://www.specialtymarket.com/>
>>>>>> Systems Integrator-- Glad to Assist
>>>>>>
>>>>>> Chat Y! messenger: bjfr33man
>>>>>>
>>>>>
>>>>>
>>>>
>>>
>>>
>>
>>
>>
>


Reply | Threaded
Open this post in threaded view
|

Re: ant.bat error message

Jacques Le Roux
Administrator
It was not a nap I needed, but a walk
Of course it's ".\ant -p" (antislash)

Jacques

From: "Jacques Le Roux" <[hidden email]>

> You should try ./ant -version
>
> Jacques
>
> From: "BJ Freeman" <[hidden email]>
>> C:\projects\java\ofbiz_patch>ant -version
>> C:\projects\java\ofbiz_patch>ECHO OFF
>> C:\projects\java\ofbiz_patch>\jsdk\jdk1.6.0_18\bin\java -jar framework/base/lib/ant-launcher-1.7.1.jar
>> framework/base/lib/ant -version
>> Apache Ant version 1.7.1 compiled on June 27 2008
>>
>> sigh taking nap.. maybe fresh mind will see the error
>> thanks.
>>
>> =========================
>> BJ Freeman
>> Strategic Power Office with Supplier Automation  <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
>> Specialtymarket.com  <http://www.specialtymarket.com/>
>> Systems Integrator-- Glad to Assist
>>
>> Chat  Y! messenger: bjfr33man
>>
>>
>> Jacques Le Roux sent the following on 12/2/2010 3:17 AM:
>>> I remember I have already seen this "message". I can't remember exactly
>>> the circumstance from the top of my head. But I remember it was my
>>> mistake, not sure it's exactly the same though..
>>> Could be that you have another (older) ant version in your Windows path
>>> and it can't be invoked
>>>
>>> Jacques
>>>
>>> From: "Jacques Le Roux" <[hidden email]>
>>>> It does not work for me, this is what I get
>>>>
>>>> Microsoft Windows XP [version 5.1.2600]
>>>> (C) Copyright 1985-2001 Microsoft Corp.
>>>>
>>>> D:\workspace\ofbizDev>dir ant.bat
>>>> Le volume dans le lecteur D s'appelle Secondaire
>>>> Le numéro de série du volume est 441F-6A20
>>>>
>>>> Répertoire de D:\workspace\ofbizDev
>>>>
>>>> 15/09/2010 23:14 1 153 ant.bat
>>>> 1 fichier(s) 1 153 octets
>>>> 0 Rép(s) 147 379 732 480 octets libres
>>>>
>>>> D:\workspace\ofbizDev>./ant.bat -p
>>>> '.' n'est pas reconnu en tant que commande interne
>>>> ou externe, un programme exécutable ou un fichier de commandes.
>>>>
>>>> Which means
>>>> ''. is not recognized as internal command
>>>> or external, operable program or batch file.
>>>>
>>>> Jacques
>>>>
>>>> From: "BJ Freeman" <[hidden email]>
>>>>> actually ./ant -p works in windows if you in the directory of the bat
>>>>> file.
>>>>> as you see it worked just an error.
>>>>>
>>>>> Jacques Le Roux sent the following on 12/1/2010 11:38 PM:
>>>>>> Did you try try "ant -p" ?
>>>>>> ./ant -p is for Linux
>>>>>>
>>>>>> Jacques
>>>>>>
>>>>>> From: "BJ Freeman" <[hidden email]>
>>>>>>> Just updated trunk and did an
>>>>>>> ./ant -p
>>>>>>> on windows (ant.bat).
>>>>>>> got this.
>>>>>>>
>>>>>>> C:\projects\java\ofbiz_patch>ECHO OFF
>>>>>>>
>>>>>>> C:\projects\java\ofbiz_patch>\jsdk\jdk1.6.0_18\bin\java -jar
>>>>>>> framework/base/lib/ant-launcher-1.7.1.jar framework/base/lib/ant -p
>>>>>>> Buildfile: build.xml
>>>>>>> C:\projects\java\ofbiz_patch\build.xml:22: The following error
>>>>>>> occurred while executing this line:
>>>>>>> C:\projects\java\ofbiz_patch\macros.xml:158: Problem: failed to create
>>>>>>> task or type scriptdef
>>>>>>> Cause: the class
>>>>>>> org.apache.tools.ant.taskdefs.optional.script.ScriptDef was not found.
>>>>>>> This looks like one of Ant's optional components.
>>>>>>> Action: Check that the appropriate optional JAR exists in
>>>>>>> -C:\projects\java\ofbiz_patch\framework\base\lib
>>>>>>> -C:\Documents and Settings\BJ Freeman\.ant\lib
>>>>>>> -a directory added on the command line with the -lib argument
>>>>>>>
>>>>>>> Do not panic, this is a common problem.
>>>>>>> The commonest cause is a missing JAR.
>>>>>>>
>>>>>>> This is not a bug; it is a configuration problem
>>>>>>>
>>>>>>> =========================
>>>>>>> BJ Freeman
>>>>>>> Strategic Power Office with Supplier Automation
>>>>>>> <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
>>>>>>> Specialtymarket.com <http://www.specialtymarket.com/>
>>>>>>> Systems Integrator-- Glad to Assist
>>>>>>>
>>>>>>> Chat Y! messenger: bjfr33man
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: ant.bat error message

BJ Freeman
change my java_home from
C:\jsdk\jdk1.6.0_18
to
C:\jsdk\jdk1.6.0_19
solved the problem

=========================
BJ Freeman
Strategic Power Office with Supplier Automation  <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
Specialtymarket.com  <http://www.specialtymarket.com/>
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man


Jacques Le Roux sent the following on 12/2/2010 5:35 AM:

> It was not a nap I needed, but a walk
> Of course it's ".\ant -p" (antislash)
>
> Jacques
>
> From: "Jacques Le Roux" <[hidden email]>
>> You should try ./ant -version
>>
>> Jacques
>>
>> From: "BJ Freeman" <[hidden email]>
>>> C:\projects\java\ofbiz_patch>ant -version
>>> C:\projects\java\ofbiz_patch>ECHO OFF
>>> C:\projects\java\ofbiz_patch>\jsdk\jdk1.6.0_18\bin\java -jar
>>> framework/base/lib/ant-launcher-1.7.1.jar
>>> framework/base/lib/ant -version
>>> Apache Ant version 1.7.1 compiled on June 27 2008
>>>
>>> sigh taking nap.. maybe fresh mind will see the error
>>> thanks.
>>>
>>> =========================
>>> BJ Freeman
>>> Strategic Power Office with Supplier Automation
>>> <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
>>> Specialtymarket.com <http://www.specialtymarket.com/>
>>> Systems Integrator-- Glad to Assist
>>>
>>> Chat Y! messenger: bjfr33man
>>>
>>>
>>> Jacques Le Roux sent the following on 12/2/2010 3:17 AM:
>>>> I remember I have already seen this "message". I can't remember exactly
>>>> the circumstance from the top of my head. But I remember it was my
>>>> mistake, not sure it's exactly the same though..
>>>> Could be that you have another (older) ant version in your Windows path
>>>> and it can't be invoked
>>>>
>>>> Jacques
>>>>
>>>> From: "Jacques Le Roux" <[hidden email]>
>>>>> It does not work for me, this is what I get
>>>>>
>>>>> Microsoft Windows XP [version 5.1.2600]
>>>>> (C) Copyright 1985-2001 Microsoft Corp.
>>>>>
>>>>> D:\workspace\ofbizDev>dir ant.bat
>>>>> Le volume dans le lecteur D s'appelle Secondaire
>>>>> Le numéro de série du volume est 441F-6A20
>>>>>
>>>>> Répertoire de D:\workspace\ofbizDev
>>>>>
>>>>> 15/09/2010 23:14 1 153 ant.bat
>>>>> 1 fichier(s) 1 153 octets
>>>>> 0 Rép(s) 147 379 732 480 octets libres
>>>>>
>>>>> D:\workspace\ofbizDev>./ant.bat -p
>>>>> '.' n'est pas reconnu en tant que commande interne
>>>>> ou externe, un programme exécutable ou un fichier de commandes.
>>>>>
>>>>> Which means
>>>>> ''. is not recognized as internal command
>>>>> or external, operable program or batch file.
>>>>>
>>>>> Jacques
>>>>>
>>>>> From: "BJ Freeman" <[hidden email]>
>>>>>> actually ./ant -p works in windows if you in the directory of the bat
>>>>>> file.
>>>>>> as you see it worked just an error.
>>>>>>
>>>>>> Jacques Le Roux sent the following on 12/1/2010 11:38 PM:
>>>>>>> Did you try try "ant -p" ?
>>>>>>> ./ant -p is for Linux
>>>>>>>
>>>>>>> Jacques
>>>>>>>
>>>>>>> From: "BJ Freeman" <[hidden email]>
>>>>>>>> Just updated trunk and did an
>>>>>>>> ./ant -p
>>>>>>>> on windows (ant.bat).
>>>>>>>> got this.
>>>>>>>>
>>>>>>>> C:\projects\java\ofbiz_patch>ECHO OFF
>>>>>>>>
>>>>>>>> C:\projects\java\ofbiz_patch>\jsdk\jdk1.6.0_18\bin\java -jar
>>>>>>>> framework/base/lib/ant-launcher-1.7.1.jar framework/base/lib/ant -p
>>>>>>>> Buildfile: build.xml
>>>>>>>> C:\projects\java\ofbiz_patch\build.xml:22: The following error
>>>>>>>> occurred while executing this line:
>>>>>>>> C:\projects\java\ofbiz_patch\macros.xml:158: Problem: failed to
>>>>>>>> create
>>>>>>>> task or type scriptdef
>>>>>>>> Cause: the class
>>>>>>>> org.apache.tools.ant.taskdefs.optional.script.ScriptDef was not
>>>>>>>> found.
>>>>>>>> This looks like one of Ant's optional components.
>>>>>>>> Action: Check that the appropriate optional JAR exists in
>>>>>>>> -C:\projects\java\ofbiz_patch\framework\base\lib
>>>>>>>> -C:\Documents and Settings\BJ Freeman\.ant\lib
>>>>>>>> -a directory added on the command line with the -lib argument
>>>>>>>>
>>>>>>>> Do not panic, this is a common problem.
>>>>>>>> The commonest cause is a missing JAR.
>>>>>>>>
>>>>>>>> This is not a bug; it is a configuration problem
>>>>>>>>
>>>>>>>> =========================
>>>>>>>> BJ Freeman
>>>>>>>> Strategic Power Office with Supplier Automation
>>>>>>>> <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
>>>>>>>> Specialtymarket.com <http://www.specialtymarket.com/>
>>>>>>>> Systems Integrator-- Glad to Assist
>>>>>>>>
>>>>>>>> Chat Y! messenger: bjfr33man
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>
>>
>
>
>