You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by suhas <su...@techmas.hcltech.com> on 2000/07/11 18:11:19 UTC

Re: just d/l & installed ANT'S need some guidance!!

set classpath to ant.jar , jaxp.jar  . 
and use dos-prompt to enter - build all  or build clean
Suhas


  ----- Original Message ----- 
  From: Chuck Amadi 
  To: struts-user@jakarta.apache.org ; calvin.yu@mindspring.com 
  Sent: Wednesday, July 11, 2001 12:20 PM
  Subject: just d/l & installed ANT'S need some guidance!!


  Hi, all eventhugh Ant's is bundled with netbeans 3.2.2 i have just downloaded (binary) , installed and config  the set up environment - C:\jakarta-ant.Thus do i mount the C:\jakarta-ant-1.3 onto the netbeans filesystem or do i just add ant.jar and any jars/classes that i require to my webapp's WEB-INF/lib dir, also i am not sure wheather you just utilise the ant command from dos-prompt or as i hope via Scripts netbeans IDE. 
  It feels a bit ambiguous as it states that one should download any auxiliary jars required to build tasks i am interested in . Well i am interested  testlet.jar,rhino.jar and jpython.jar for now. 
  Thus can i install these libraries later once i have a feel and look of this applicaion build tool. 
  Thus finally can i from the netbeans IDE menu run ant . As once i have accomplished this i have got to do it all over again on Linux . 

  Cheers All. Chuck 
    

  -- 
  The views expressed by the sender of this message don't 
  necessarily represent those of Brecon Beacons National Park 
  Authority. This message is intended for the addressee(s) only 
  and is sent in confidence; if you receive it in error, please can you 
  let us know (at it@breconbeacons.org) and then destroy all copies. 
  Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn 
  adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog. 
  Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion 
  yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn 
  mewn camgymeriad, a fyddech gystal â rhoi gwybod i 
  ni (yn it@breconbeacons.org) ac yna dilëwch bob copi. 
    


Re: Re:ant's Classpath just(ANT'S need some guidance!!)

Posted by suhas <su...@techmas.hcltech.com>.
Chuck 
Please check bin directory will never have any jars in it 
so classpath is not correct 

  ----- Original Message ----- 
  From: Chuck Amadi 
  To: struts-user@jakarta.apache.org 
  Sent: Wednesday, July 11, 2001 2:33 PM
  Subject: Re:ant's Classpath just(ANT'S need some guidance!!)


  The ant.jar is in the lib dir with the others.I was aware that the classpath for ant must contain ant.jar and the other jar's needed for my JAXP-compliant XML parser albeit i thought that %PATH% would include all jar's. Thus what is the correct syntax. 
  set TOMCAT_HOME=C:\jakarta-tomcat-3.2.2 
  set ANT_HOME=C:\jakarta-ant-1.2 
  set JAVA_HOME=C:\JDK1.3 
  set PATH=%PATH%;%ANT_HOME%\bin ----- Believed that this was inclusive for all jar's 

  set classpath=C:\jakarta-ant\bin\ant.jar (is this correct) 
  Cheers Chuck 

  Peter Alfors wrote: 

       Part 1.1.1    Type: Plain Text (text/plain) 
                 Encoding: 8bit 
                              Name: peter.alfors.vcf 
       peter.alfors.vcf       Type: VCard (text/x-vcard) 
                          Encoding: 7bit 
                       Description: Card for Peter Alfors

  -- 
  The views expressed by the sender of this message don't 
  necessarily represent those of Brecon Beacons National Park 
  Authority. This message is intended for the addressee(s) only 
  and is sent in confidence; if you receive it in error, please can you 
  let us know (at it@breconbeacons.org) and then destroy all copies. 
  Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn 
  adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog. 
  Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion 
  yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn 
  mewn camgymeriad, a fyddech gystal â rhoi gwybod i 
  ni (yn it@breconbeacons.org) ac yna dilëwch bob copi. 
    


Re: ant's Classpath just(ANT'S need some guidance!!)

Posted by Chuck Amadi <ch...@breconbeacons.org>.
Hi, all i have got the correct path  as below-
Nevertheless i recieved a BuildFile: build.xml does not exist  -
buildfile.
Thus i believe that all i need to do is build ant.

set ANT_HOME=C:\jakarta-ant-1.3
set classpath=%ANT_HOME%\lib\ant.jar
set PATH=%PATH%;%ANT_HOME%\bin\ant.bat
set JAVA_HOME=C:\JDK1.3
 Cheers 4 your help




Chuck Amadi wrote:

> I have tried that already no joy . Thus must i do away with  set
> TOMCAT_HOME as
> i assumed that i needed this for the container.
> set JAVA_HOME=C:\JDK1.3
> set  set classpath=%ANT_HOME%\lib\ant.jar
> Again this didn't work .
> Thus i try again at home as after i solve this it's time 4 linux
> Cheers all.
>
> Peter Alfors wrote:
>
> >    Part 1.1    Type: Plain Text (text/plain)
> >            Encoding: 8bit
>
> --
> The views expressed by the sender of this message don't
> necessarily represent those of Brecon Beacons National Park
> Authority. This message is intended for the addressee(s) only
> and is sent in confidence; if you receive it in error, please can you
> let us know (at it@breconbeacons.org) and then destroy all copies.
> Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
> adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
> Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
> yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
> mewn camgymeriad, a fyddech gystal â rhoi gwybod i
> ni (yn it@breconbeacons.org) ac yna dilëwch bob copi.

--
The views expressed by the sender of this message don't
necessarily represent those of Brecon Beacons National Park
Authority. This message is intended for the addressee(s) only
and is sent in confidence; if you receive it in error, please can you
let us know (at it@breconbeacons.org) and then destroy all copies.
Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
mewn camgymeriad, a fyddech gystal â rhoi gwybod i
ni (yn it@breconbeacons.org) ac yna dilëwch bob copi.



Re: ant's Classpath just(ANT'S need some guidance!!)

Posted by Chuck Amadi <ch...@breconbeacons.org>.
I have tried that already no joy . Thus must i do away with  set
TOMCAT_HOME as
i assumed that i needed this for the container.
set JAVA_HOME=C:\JDK1.3
set  set classpath=%ANT_HOME%\lib\ant.jar
Again this didn't work .
Thus i try again at home as after i solve this it's time 4 linux
Cheers all.

Peter Alfors wrote:

>    Part 1.1    Type: Plain Text (text/plain)
>            Encoding: 8bit

--
The views expressed by the sender of this message don't
necessarily represent those of Brecon Beacons National Park
Authority. This message is intended for the addressee(s) only
and is sent in confidence; if you receive it in error, please can you
let us know (at it@breconbeacons.org) and then destroy all copies.
Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
mewn camgymeriad, a fyddech gystal â rhoi gwybod i
ni (yn it@breconbeacons.org) ac yna dilëwch bob copi.



Re: ant's Classpath just(ANT'S need some guidance!!)

Posted by Peter Alfors <pe...@irista.com>.
Java expects all necessary classes/jars/etc to be in the CLASSPATH
environment variable.

try:

    set classpath=%ANT_HOME%\lib\ant.jar;

then try to run ant.

HTH,
    Pete

Chuck Amadi wrote:

> The ant.jar is in the lib dir with the others.I was aware that the
> classpath for ant must contain ant.jar and the other jar's needed for
> my JAXP-compliant XML parser albeit i thought that %PATH% would
> include all jar's. Thus what is the correct syntax.
>
> set TOMCAT_HOME=C:\jakarta-tomcat-3.2.2
> set ANT_HOME=C:\jakarta-ant-1.2
> set JAVA_HOME=C:\JDK1.3
> set PATH=%PATH%;%ANT_HOME%\bin ----- Believed that this was inclusive
> for all jar's
>
> set classpath=C:\jakarta-ant\bin\ant.jar (is this correct)
> Cheers Chuck
>
> Peter Alfors wrote:
>
>>    Part 1.1.1    Type: Plain Text (text/plain)
>>              Encoding: 8bit
>>
>>                           Name: peter.alfors.vcf
>>    peter.alfors.vcf       Type: VCard (text/x-vcard)
>>                       Encoding: 7bit
>>                    Description: Card for Peter Alfors
>
> --
> The views expressed by the sender of this message don't
> necessarily represent those of Brecon Beacons National Park
> Authority. This message is intended for the addressee(s) only
> and is sent in confidence; if you receive it in error, please can you
> let us know (at it@breconbeacons.org) and then destroy all copies.
> Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
> adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
> Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
> yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
> mewn camgymeriad, a fyddech gystal â rhoi gwybod i
> ni (yn it@breconbeacons.org) ac yna dilëwch bob copi.
>

Re:ant's Classpath just(ANT'S need some guidance!!)

Posted by Chuck Amadi <ch...@breconbeacons.org>.
The ant.jar is in the lib dir with the others.I was aware that the
classpath for ant must contain ant.jar and the other jar's needed for my
JAXP-compliant XML parser albeit i thought that %PATH% would include all
jar's. Thus what is the correct syntax.

set TOMCAT_HOME=C:\jakarta-tomcat-3.2.2
set ANT_HOME=C:\jakarta-ant-1.2
set JAVA_HOME=C:\JDK1.3
set PATH=%PATH%;%ANT_HOME%\bin ----- Believed that this was inclusive
for all jar's

set classpath=C:\jakarta-ant\bin\ant.jar (is this correct)
Cheers Chuck

Peter Alfors wrote:

>    Part 1.1.1    Type: Plain Text (text/plain)
>              Encoding: 8bit
>
>                           Name: peter.alfors.vcf
>    peter.alfors.vcf       Type: VCard (text/x-vcard)
>                       Encoding: 7bit
>                    Description: Card for Peter Alfors

--
The views expressed by the sender of this message don't
necessarily represent those of Brecon Beacons National Park
Authority. This message is intended for the addressee(s) only
and is sent in confidence; if you receive it in error, please can you
let us know (at it@breconbeacons.org) and then destroy all copies.
Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
mewn camgymeriad, a fyddech gystal â rhoi gwybod i
ni (yn it@breconbeacons.org) ac yna dilëwch bob copi.


Re: just d/l & installed ANT'S need some guidance!!

Posted by Peter Alfors <pe...@irista.com>.
Is the ant.jar in your classpath?

Pete


Chuck Amadi wrote:

> Hi again i have set my classpath within AutoExec.bat as follows
> set TOMCAT_HOME=C:\jakarta-tomcat-3.2.2
> set ANT_HOME=C:\jakarta-ant-1.2
> set JAVA_HOME=C:\JDK1.3
> set PATH=%PATH%;%ANT_HOME%\bin
> Thus on checking the ant's bin dir the ant.bat states the following.
> Exception in thread "main" java.lang. NoClassDefFoundError
> org/apache/tools/ant/main.
> Any Ideas.- Cheers Chuck
>
> suhas wrote:
>
>>    Part 1.1    Type: Plain Text (text/plain)
>>            Encoding: quoted-printable
>
> --
> The views expressed by the sender of this message don't
> necessarily represent those of Brecon Beacons National Park
> Authority. This message is intended for the addressee(s) only
> and is sent in confidence; if you receive it in error, please can you
> let us know (at it@breconbeacons.org) and then destroy all copies.
> Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
> adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
> Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
> yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
> mewn camgymeriad, a fyddech gystal â rhoi gwybod i
> ni (yn it@breconbeacons.org) ac yna dilëwch bob copi.
>

Re: just d/l & installed ANT'S need some guidance!!

Posted by Chuck Amadi <ch...@breconbeacons.org>.
Hi again i have set my classpath within AutoExec.bat as follows
set TOMCAT_HOME=C:\jakarta-tomcat-3.2.2
set ANT_HOME=C:\jakarta-ant-1.2
set JAVA_HOME=C:\JDK1.3
set PATH=%PATH%;%ANT_HOME%\bin
Thus on checking the ant's bin dir the ant.bat states the following.
Exception in thread "main" java.lang. NoClassDefFoundError
org/apache/tools/ant/main.
Any Ideas.- Cheers Chuck

suhas wrote:

>    Part 1.1    Type: Plain Text (text/plain)
>            Encoding: quoted-printable

--
The views expressed by the sender of this message don't
necessarily represent those of Brecon Beacons National Park
Authority. This message is intended for the addressee(s) only
and is sent in confidence; if you receive it in error, please can you
let us know (at it@breconbeacons.org) and then destroy all copies.
Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
mewn camgymeriad, a fyddech gystal â rhoi gwybod i
ni (yn it@breconbeacons.org) ac yna dilëwch bob copi.


Re: just d/l & installed ANT'S need some guidance!!

Posted by Chuck Amadi <ch...@breconbeacons.org>.
Hi, tried that and just ant from the ms-dos command line and got
Exception in Thread - I assume that i have a classpath issue regarding
multithreading .
Any Suggestions Cheers Chuck

suhas wrote:

>    Part 1.1    Type: Plain Text (text/plain)
>            Encoding: quoted-printable

--
The views expressed by the sender of this message don't
necessarily represent those of Brecon Beacons National Park
Authority. This message is intended for the addressee(s) only
and is sent in confidence; if you receive it in error, please can you
let us know (at it@breconbeacons.org) and then destroy all copies.
Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
mewn camgymeriad, a fyddech gystal â rhoi gwybod i
ni (yn it@breconbeacons.org) ac yna dilëwch bob copi.