Hi,

  You should make sure you have set the JAVA_HOME and the ANT_HOME
variables, also it is probably best to set the Android home as a
environment variable (http://code.google.com/android/intro/
installing.html). Also, after setting these variables, add them to
your system PATH variable, that way you will have access to the tools
from any directory on your system. Ant usually runs just by calling
the ant command from the folder where your build.xml file resides. If
the build file is named different than "build.xml" you need to run ant
-buildfile <buildfilename>.

Hope this helps,
Mihai

On Dec 9, 2:49 pm, "Tharun Kumar" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm trying to build on Ant. But I'm stuck with a thing. When I try to
> run ant, I'm getting following error note on command prompt.
>
> I've copied the build.xml inside java folder.
>
> D:\Tharun\DM_LJ\Android\apache-ant-1.7.1-bin\apache-ant-1.7.1\bin>ant
> Unable to locate tools.jar. Expected to find it in C:\Program 
> Files\Java\jre1.6.
> 0_02\lib\tools.jar
> Buildfile: build.xml does not exist!
> Build failed
>
> Prior to this, I've set JAVA_HOME environment variable.
>
> Which is the right path to copy the build.xml?
>
> Can you someone help on this?
>
> Regards,
> Tharun
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to