How to build Java Services.

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

How to build Java Services.

su2
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.
Reply | Threaded
Open this post in threaded view
|

RE: How to build Java Services.

Dan Dodd
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.
su2
Reply | Threaded
Open this post in threaded view
|

RE: How to build Java Services.

su2
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:shuchi@pexsupply.com]
Sent: Wednesday, July 08, 2009 8:52 AM
To: user@ofbiz.apache.org
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.
Reply | Threaded
Open this post in threaded view
|

Re: How to build Java Services.

BJ Freeman
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.

Reply | Threaded
Open this post in threaded view
|

RE: How to build Java Services.

Charles Tjandra
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.


Reply | Threaded
Open this post in threaded view
|

RE: How to build Java Services.

Dan Dodd
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,
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.

su2
Reply | Threaded
Open this post in threaded view
|

Re: How to build Java Services.

su2
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.
>
>
>
>  

su2
Reply | Threaded
Open this post in threaded view
|

RE: How to build Java Services.

su2
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

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
dandodd@ihop.org

-----Original Message-----
From: su2 [mailto:shuchi@pexsupply.com]
Sent: Wednesday, July 08, 2009 9:15 AM
To: user@ofbiz.apache.org
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:shuchi@pexsupply.com]
> Sent: Wednesday, July 08, 2009 8:52 AM
> To: user@ofbiz.apache.org
> 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.
Reply | Threaded
Open this post in threaded view
|

Re: How to build Java Services.

BJ Freeman
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.

Reply | Threaded
Open this post in threaded view
|

Re: How to build Java Services.

Adrian Crum
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.
>>>
>>>
>>>
>
Reply | Threaded
Open this post in threaded view
|

Re: How to build Java Services.

BJ Freeman
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.