Hello All,
I am following Hello World 3 tutorial. I have created Hello3Services.java and build.xml file.
when I try to build java service using following command it gives me error: Command:ant Buildfile: build.xml Error:'ant' is not recognized as internal or external command, operable program or batch file. I appreciate your help. Thank you in advance. |
Hi,
It looks like you are running in Windows and don't have the ant program or don't have it on your execution PATH. Dan Dodd -----Original Message----- From: su2 [mailto:[hidden email]] Sent: Wednesday, July 08, 2009 8:52 AM To: [hidden email] Subject: How to build Java Services. Hello All, I am following Hello World 3 tutorial. I have created Hello3Services.java and build.xml file. when I try to build java service using following command it gives me error: Command:ant Buildfile: build.xml Error:'ant' is not recognized as internal or external command, operable program or batch file. I appreciate your help. Thank you in advance. -- View this message in context: http://www.nabble.com/How-to-build-Java-Services.-tp24391954p24391954.ht ml Sent from the OFBiz - User mailing list archive at Nabble.com. |
Yes I am running this command in windows - DOS. I do have ant program. I see ANT in my Eclipse platform.
I am not sure how to run this. I really appreciate your help. Thank you.
|
In reply to this post by su2
Are you running a non ofbiz trunk version?
if so you need to go to the forum that supports that code since it does not conform to the trunk and could have other solutions not valid with ofbiz. su2 sent the following on 7/8/2009 6:52 AM: > Hello All, > > I am following Hello World 3 tutorial. I have created Hello3Services.java > and build.xml file. > > > when I try to build java service using following command it gives me error: > > > Command:ant Buildfile: build.xml > > > Error:'ant' is not recognized as internal or external command, operable > program or batch file. > > > I appreciate your help. > > > Thank you in advance. -- BJ Freeman http://www.businessesnetwork.com/automation http://bjfreeman.elance.com http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro Systems Integrator. |
In reply to this post by su2
Hi Shuchi, Have you told the eclipse about your folder at - JAVA BUILD PATH > Source > Add Folder ... ???? - Charles TJ -----Original Message----- From: su2 [mailto:[hidden email]] Sent: 08 Juli 2009 21:15 To: [hidden email] Subject: RE: How to build Java Services. Yes I am running this command in windows - DOS. I do have ant program. I see ANT in my Eclipse platform. I am not sure how to run this. I really appreciate your help. Thank you. |
In reply to this post by su2
I'm not yet familiar with Eclipse, something I need to work on.
I run ant.bat from the command line in the OFBiz Trunk and OFBiz 9.04 Dan Dodd IHOP-KC [hidden email] -----Original Message----- From: su2 [mailto:[hidden email]] Sent: Wednesday, July 08, 2009 9:15 AM To: [hidden email] Subject: RE: How to build Java Services. Yes I am running this command in windows - DOS. I do have ant program. I see ANT in my Eclipse platform. I am not sure how to run this. I really appreciate your help. Thank you. Dan Dodd wrote: > > Hi, > It looks like you are running in Windows and don't have the ant program > or don't have it on your execution PATH. > > Dan Dodd > > > > > -----Original Message----- > From: su2 [mailto:[hidden email]] > Sent: Wednesday, July 08, 2009 8:52 AM > To: [hidden email] > Subject: How to build Java Services. > > > Hello All, > > I am following Hello World 3 tutorial. I have created > Hello3Services.java > and build.xml file. > > > when I try to build java service using following command it gives me > error: > > > Command:ant Buildfile: build.xml > > > Error:'ant' is not recognized as internal or external command, > program or batch file. > > > I appreciate your help. > > > Thank you in advance. > -- > View this message in context: > > ml > Sent from the OFBiz - User mailing list archive at Nabble.com. > > -- View this message in context: http://www.nabble.com/How-to-build-Java-Services.-tp24391954p24392304.ht ml Sent from the OFBiz - User mailing list archive at Nabble.com. |
In reply to this post by Charles Tjandra
Hi
I don't think I did what you said and not even sure how to do it. Thanks. Su- SELC Sales Div wrote: > Hi Shuchi, > > Have you told the eclipse about your folder at - JAVA BUILD PATH > Source > > Add Folder ... ???? > > - Charles TJ > > > > > -----Original Message----- > From: su2 [mailto:[hidden email]] > Sent: 08 Juli 2009 21:15 > To: [hidden email] > Subject: RE: How to build Java Services. > > > > Yes I am running this command in windows - DOS. I do have ant program. I see > ANT in my Eclipse platform. > > I am not sure how to run this. > > I really appreciate your help. > > Thank you. > > > > |
In reply to this post by Dan Dodd
I did run ant.bat file at root folder and build was successful. After that I am trying: workspace/ofbiz/hot-deploy/hello3> ant Buildfile: build.xml
Which gives me the error: 'ant' is not recognized as internal or external command
|
In reply to this post by Dan Dodd
include your ofbiz/hot-deploy/build.xml
in the /ofbiz/build.xml su2 sent the following on 7/8/2009 10:17 AM: > I did run ant.bat file at root folder and build was successful. After that I > am trying: workspace/ofbiz/hot-deploy/hello3> ant Buildfile: build.xml > > Which gives me the error: 'ant' is not recognized as internal or external > command > > > Dan Dodd wrote: >> I'm not yet familiar with Eclipse, something I need to work on. >> I run ant.bat from the command line in the OFBiz Trunk and OFBiz 9.04 >> >> >> Dan Dodd >> >> IHOP-KC >> [hidden email] >> >> -----Original Message----- >> From: su2 [mailto:[hidden email]] >> Sent: Wednesday, July 08, 2009 9:15 AM >> To: [hidden email] >> Subject: RE: How to build Java Services. >> >> >> Yes I am running this command in windows - DOS. I do have ant program. I >> see >> ANT in my Eclipse platform. >> >> I am not sure how to run this. >> >> I really appreciate your help. >> >> Thank you. >> >> Dan Dodd wrote: >>> Hi, >>> It looks like you are running in Windows and don't have the ant >> program >>> or don't have it on your execution PATH. >>> >>> Dan Dodd >>> >>> >>> >>> >>> -----Original Message----- >>> From: su2 [mailto:[hidden email]] >>> Sent: Wednesday, July 08, 2009 8:52 AM >>> To: [hidden email] >>> Subject: How to build Java Services. >>> >>> >>> Hello All, >>> >>> I am following Hello World 3 tutorial. I have created >>> Hello3Services.java >>> and build.xml file. >>> >>> >>> when I try to build java service using following command it gives me >>> error: >>> >>> >>> Command:ant Buildfile: build.xml >>> >>> >>> Error:'ant' is not recognized as internal or external command, >> operable >>> program or batch file. >>> >>> >>> I appreciate your help. >>> >>> >>> Thank you in advance. >>> -- >>> View this message in context: >>> >> http://www.nabble.com/How-to-build-Java-Services.-tp24391954p24391954.ht >>> ml >>> Sent from the OFBiz - User mailing list archive at Nabble.com. >>> >>> >> -- >> View this message in context: >> http://www.nabble.com/How-to-build-Java-Services.-tp24391954p24392304.ht >> ml >> Sent from the OFBiz - User mailing list archive at Nabble.com. >> >> >> > -- BJ Freeman http://www.businessesnetwork.com/automation http://bjfreeman.elance.com http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro Systems Integrator. |
BJ,
The main build file already builds all components in the hot-deploy folder. The problem is the user doesn't understand basic DOS commands and paths. -Adrian BJ Freeman wrote: > include your ofbiz/hot-deploy/build.xml > in the /ofbiz/build.xml > > su2 sent the following on 7/8/2009 10:17 AM: >> I did run ant.bat file at root folder and build was successful. After that I >> am trying: workspace/ofbiz/hot-deploy/hello3> ant Buildfile: build.xml >> >> Which gives me the error: 'ant' is not recognized as internal or external >> command >> >> >> Dan Dodd wrote: >>> I'm not yet familiar with Eclipse, something I need to work on. >>> I run ant.bat from the command line in the OFBiz Trunk and OFBiz 9.04 >>> >>> >>> Dan Dodd >>> >>> IHOP-KC >>> [hidden email] >>> >>> -----Original Message----- >>> From: su2 [mailto:[hidden email]] >>> Sent: Wednesday, July 08, 2009 9:15 AM >>> To: [hidden email] >>> Subject: RE: How to build Java Services. >>> >>> >>> Yes I am running this command in windows - DOS. I do have ant program. I >>> see >>> ANT in my Eclipse platform. >>> >>> I am not sure how to run this. >>> >>> I really appreciate your help. >>> >>> Thank you. >>> >>> Dan Dodd wrote: >>>> Hi, >>>> It looks like you are running in Windows and don't have the ant >>> program >>>> or don't have it on your execution PATH. >>>> >>>> Dan Dodd >>>> >>>> >>>> >>>> >>>> -----Original Message----- >>>> From: su2 [mailto:[hidden email]] >>>> Sent: Wednesday, July 08, 2009 8:52 AM >>>> To: [hidden email] >>>> Subject: How to build Java Services. >>>> >>>> >>>> Hello All, >>>> >>>> I am following Hello World 3 tutorial. I have created >>>> Hello3Services.java >>>> and build.xml file. >>>> >>>> >>>> when I try to build java service using following command it gives me >>>> error: >>>> >>>> >>>> Command:ant Buildfile: build.xml >>>> >>>> >>>> Error:'ant' is not recognized as internal or external command, >>> operable >>>> program or batch file. >>>> >>>> >>>> I appreciate your help. >>>> >>>> >>>> Thank you in advance. >>>> -- >>>> View this message in context: >>>> >>> http://www.nabble.com/How-to-build-Java-Services.-tp24391954p24391954.ht >>>> ml >>>> Sent from the OFBiz - User mailing list archive at Nabble.com. >>>> >>>> >>> -- >>> View this message in context: >>> http://www.nabble.com/How-to-build-Java-Services.-tp24391954p24392304.ht >>> ml >>> Sent from the OFBiz - User mailing list archive at Nabble.com. >>> >>> >>> > |
In reply to this post by BJ Freeman
your right Adrian. spaced out.
then he should not need to run the ant command in the hot deploy Adrian Crum sent the following on 7/8/2009 11:58 AM: > BJ, > > The main build file already builds all components in the hot-deploy > folder. The problem is the user doesn't understand basic DOS commands > and paths. > > -Adrian > > BJ Freeman wrote: >> include your ofbiz/hot-deploy/build.xml >> in the /ofbiz/build.xml >> >> su2 sent the following on 7/8/2009 10:17 AM: >>> I did run ant.bat file at root folder and build was successful. After >>> that I >>> am trying: workspace/ofbiz/hot-deploy/hello3> ant Buildfile: build.xml >>> >>> Which gives me the error: 'ant' is not recognized as internal or >>> external >>> command >>> >>> >>> Dan Dodd wrote: >>>> I'm not yet familiar with Eclipse, something I need to work on. >>>> I run ant.bat from the command line in the OFBiz Trunk and OFBiz 9.04 >>>> >>>> Dan Dodd >>>> >>>> IHOP-KC >>>> [hidden email] >>>> -----Original Message----- >>>> From: su2 [mailto:[hidden email]] Sent: Wednesday, July 08, >>>> 2009 9:15 AM >>>> To: [hidden email] >>>> Subject: RE: How to build Java Services. >>>> >>>> >>>> Yes I am running this command in windows - DOS. I do have ant >>>> program. I >>>> see >>>> ANT in my Eclipse platform. >>>> >>>> I am not sure how to run this. >>>> >>>> I really appreciate your help. >>>> >>>> Thank you. >>>> >>>> Dan Dodd wrote: >>>>> Hi, It looks like you are running in Windows and don't have the ant >>>> program >>>>> or don't have it on your execution PATH. >>>>> >>>>> Dan Dodd >>>>> >>>>> >>>>> >>>>> >>>>> -----Original Message----- >>>>> From: su2 [mailto:[hidden email]] Sent: Wednesday, July 08, >>>>> 2009 8:52 AM >>>>> To: [hidden email] >>>>> Subject: How to build Java Services. >>>>> >>>>> >>>>> Hello All, >>>>> >>>>> I am following Hello World 3 tutorial. I have created >>>>> Hello3Services.java >>>>> and build.xml file. >>>>> >>>>> >>>>> when I try to build java service using following command it gives me >>>>> error: >>>>> >>>>> >>>>> Command:ant Buildfile: build.xml >>>>> >>>>> >>>>> Error:'ant' is not recognized as internal or external command, >>>> operable >>>>> program or batch file. >>>>> >>>>> >>>>> I appreciate your help. >>>>> >>>>> >>>>> Thank you in advance. >>>>> -- >>>>> View this message in context: >>>>> >>>> http://www.nabble.com/How-to-build-Java-Services.-tp24391954p24391954.ht >>>> >>>>> ml >>>>> Sent from the OFBiz - User mailing list archive at Nabble.com. >>>>> >>>>> >>>> -- >>>> View this message in context: >>>> http://www.nabble.com/How-to-build-Java-Services.-tp24391954p24392304.ht >>>> >>>> ml >>>> Sent from the OFBiz - User mailing list archive at Nabble.com. >>>> >>>> >>>> >> > -- BJ Freeman http://www.businessesnetwork.com/automation http://bjfreeman.elance.com http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro Systems Integrator. |
Free forum by Nabble | Edit this page |