[SalesForce] Force.com Migration tool Installation Process

Force.com Migration Tool:

I am trying to install Force.com Migration tool which runs based on JDK & ANT.

I have successfully installed JDK1.6 & set an environment variable.
as described in the tutorial, I see the successful response in the console for Java -Version.

C:\Users\PRAX>java -version
java version "1.6.0_38"
Java(TM) SE Runtime Environment (build 1.6.0_38-b05)
Java HotSpot(TM) 64-Bit Server VM (build 20.13-b02, mixed mode)

I have tried installing Ant as well.
I have downloaded ant package from http://ant.apache.org/bindownload.cgi
unzipped the content. tried to set the environment variable under the name "ANT_HOME".
it din work.
I tried executing, SET ANT_HOME = installation path –> ran in cmd prompt.
it worked. I checked by echoing it "echo %ANT_HOME%", it has fetched the correct path.

but, when I execute "ant" in cmd.. i don see any result.

C:\Users\PRAX>ant
'ant' is not recognized as an internal or external command,
operable program or batch file.

can someone please explain how to set path or variable to make Migration tool work on my computer?

Thanks!

Best Answer

You also new to add the Ant bin folder to your PATH environment variable in windows.

So Computer > Properties > Advanced > Environment Variables

You will find a variable called PATH. Append your ant bin directory to this variable.

Launch a new command window and then try.

I had answered this in more detail here, have a look it should sort you out hopefully.

The term 'ant' is not recognized as the name of a cmdlet, function, script file , or operable program

Related Topic