You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by raj r <ra...@gmail.com> on 2008/01/16 10:50:31 UTC

error while running ant

Hi,
  I have downloaded the apache-ant 1.7.0. When i run the ant.bat file it
shows me message as "Unable to locate tools.jar.
Also displaying as
Buildfile:build.xml

BUILD FAILED
Premature end of file.

Re: error while running ant

Posted by sebb <se...@gmail.com>.
On 17/01/2008, raj r <ra...@gmail.com> wrote:
> Hi,
>
>  Can you please tell me after downloading the ant what all steps should i
> do. I mean where do i extract the downloaded ant files. Also build.xml file

See below.

> by default in which folder where it should be present.

Which build.xml file are you referring to?

>  Please have a look the below messages which i am getting when i run ant.
>
>  I have deleted the earlier version of ant and downloaded the new version
> of ant but then also i am still getting messages as :
>
>
> "Unable to locate tools.jar. Expected to find it in C:\Program
> Files\Jave\jre1.6.0_03\lib\tools.jar
> Buildfile:build.xml
>
> init:
>
> run:
>      [echo] funcMode = false
> BUILD FAILED
> C:\Jmeter\jakarta-jmeter-2.3\apache-ant-1.7.0\bin\build.xml:85:jmeterhomedoes
> not appear to contain a valid JMeter installation.
>

The directory path above suggests that Ant has been installed in the
JMeter directory structure. This is not a good idea; they are separate
applications and should be in separate directory trees, e.g.

C:\Jmeter\jakarta-jmeter-2.3\

and

C:\apache-ant-1.7.0

You will need to add Ant to the PATH; I suggest you define the variable

ANT_HOME=C:\apache-ant-1.7.0

and then add

%ANT_HOME%\bin

to the PATH variable - this makes it easier to move/update Ant later.


> Total time:2 seconds
>
> Could correct me if i am doing wrong way.
> Also i would like to know after the test is run how do i use ant. what all
> steps should i perform in order that i could get the same as sample report
> which is present in folder.
>
>
> Thanks in advance
> Raj
>
>
>
>
>
>
>
>
>
>
>
>
> On Jan 16, 2008 5:45 PM, A. Aneez <aa...@googlemail.com> wrote:
>
> > Tools.jar is not a requirement for running ant..i do run ant for various
> > things, i do get this missing tools.jar message but build file gets
> > executed
> > ysuccessful.
> >
> > To me, this looks like you are having a problem with your build.xml, as it
> > suggests it may be corrupted or incomplete..
> >
> >
> > On Jan 16, 2008 12:01 PM, sebb <se...@gmail.com> wrote:
> >
> > > There seems to be a problem with your Ant installation.
> > >
> > > I suggest you try reinstalling Ant, and if that does not work, please
> > > ask on the Ant user mailing list.
> > >
> > > On 16/01/2008, raj r <ra...@gmail.com> wrote:
> > > > Hi,
> > > >  I have downloaded the apache-ant 1.7.0. When i run the ant.bat file
> > it
> > > > shows me message as "Unable to locate tools.jar.
> > > > Also displaying as
> > > > Buildfile:build.xml
> > > >
> > > > BUILD FAILED
> > > > Premature end of file.
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> > >
> > >
> >
> >
> > --
> > Regards,
> >
> > Aneez Abubacker.
> >
> > Mobile: +44(0)773-66-77-186
> > E-Mail: a.aneez@gmail.com
> > IM: aneez@hotmail.com
> >
>

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


Re: error while running ant

Posted by raj r <ra...@gmail.com>.
Hi,

  Can you please tell me after downloading the ant what all steps should i
do. I mean where do i extract the downloaded ant files. Also build.xml file
by default in which folder where it should be present.
  Please have a look the below messages which i am getting when i run ant.

  I have deleted the earlier version of ant and downloaded the new version
of ant but then also i am still getting messages as :


"Unable to locate tools.jar. Expected to find it in C:\Program
Files\Jave\jre1.6.0_03\lib\tools.jar
Buildfile:build.xml

init:

run:
      [echo] funcMode = false
BUILD FAILED
C:\Jmeter\jakarta-jmeter-2.3\apache-ant-1.7.0\bin\build.xml:85:jmeterhomedoes
not appear to contain a valid JMeter installation.

Total time:2 seconds

Could correct me if i am doing wrong way.
Also i would like to know after the test is run how do i use ant. what all
steps should i perform in order that i could get the same as sample report
which is present in folder.


Thanks in advance
Raj












On Jan 16, 2008 5:45 PM, A. Aneez <aa...@googlemail.com> wrote:

> Tools.jar is not a requirement for running ant..i do run ant for various
> things, i do get this missing tools.jar message but build file gets
> executed
> ysuccessful.
>
> To me, this looks like you are having a problem with your build.xml, as it
> suggests it may be corrupted or incomplete..
>
>
> On Jan 16, 2008 12:01 PM, sebb <se...@gmail.com> wrote:
>
> > There seems to be a problem with your Ant installation.
> >
> > I suggest you try reinstalling Ant, and if that does not work, please
> > ask on the Ant user mailing list.
> >
> > On 16/01/2008, raj r <ra...@gmail.com> wrote:
> > > Hi,
> > >  I have downloaded the apache-ant 1.7.0. When i run the ant.bat file
> it
> > > shows me message as "Unable to locate tools.jar.
> > > Also displaying as
> > > Buildfile:build.xml
> > >
> > > BUILD FAILED
> > > Premature end of file.
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
>
>
> --
> Regards,
>
> Aneez Abubacker.
>
> Mobile: +44(0)773-66-77-186
> E-Mail: a.aneez@gmail.com
> IM: aneez@hotmail.com
>

Re: error while running ant

Posted by "A.Aneez" <aa...@googlemail.com>.
Tools.jar is not a requirement for running ant..i do run ant for various
things, i do get this missing tools.jar message but build file gets executed
ysuccessful.

To me, this looks like you are having a problem with your build.xml, as it
suggests it may be corrupted or incomplete..


On Jan 16, 2008 12:01 PM, sebb <se...@gmail.com> wrote:

> There seems to be a problem with your Ant installation.
>
> I suggest you try reinstalling Ant, and if that does not work, please
> ask on the Ant user mailing list.
>
> On 16/01/2008, raj r <ra...@gmail.com> wrote:
> > Hi,
> >  I have downloaded the apache-ant 1.7.0. When i run the ant.bat file it
> > shows me message as "Unable to locate tools.jar.
> > Also displaying as
> > Buildfile:build.xml
> >
> > BUILD FAILED
> > Premature end of file.
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>


-- 
Regards,

Aneez Abubacker.

Mobile: +44(0)773-66-77-186
E-Mail: a.aneez@gmail.com
IM: aneez@hotmail.com

Re: error while running ant

Posted by sebb <se...@gmail.com>.
There seems to be a problem with your Ant installation.

I suggest you try reinstalling Ant, and if that does not work, please
ask on the Ant user mailing list.

On 16/01/2008, raj r <ra...@gmail.com> wrote:
> Hi,
>  I have downloaded the apache-ant 1.7.0. When i run the ant.bat file it
> shows me message as "Unable to locate tools.jar.
> Also displaying as
> Buildfile:build.xml
>
> BUILD FAILED
> Premature end of file.
>

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