{"id":1424,"date":"2015-11-23T05:02:52","date_gmt":"2015-11-23T05:02:52","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/salesforce\/?p=1424"},"modified":"2025-06-19T11:16:44","modified_gmt":"2025-06-19T11:16:44","slug":"using-force-com-migration-tool-part-i-configuration","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/salesforce\/2015\/11\/23\/using-force-com-migration-tool-part-i-configuration\/","title":{"rendered":"Using Force.com Migration Tool Part I \u2013 Configuration"},"content":{"rendered":"\n<p>In our previous blog \u201c<strong><a href=\"http:\/\/www.greytrix.com\/blogs\/salesforce\/2015\/09\/02\/creating-project-using-force-com-ide\/\" target=\"_blank\" rel=\"noopener\">Creating Project using Force.com IDE<\/a><\/strong>\u201d, we discussed one of the methods of Salesforce metadata migration i.e. migration using Force.com IDE. In this blog we will discuss another tool used for metadata migration in Salesforce i.e. Ant\/Java based Force.com Migration Tool.<\/p>\n\n\n\n<p><strong><strong style=\"color: #000000;\"><span style=\"color: #800000;\"><a style=\"color: #225e9b;\" href=\"https:\/\/www.greytrix.com\/product\/gumu\/salesforce-sage-erp-integration\" target=\"_blank\" rel=\"noopener\">Real-time, bi-directional, multi-company \u2013 Sage ERP Integration with Salesforce<\/a><\/span><\/strong><\/strong><\/p>\n\n\n\n<p>The Force.com Migration Tool is a Java\/Ant-based command-line utility for moving metadata between a local directory and a Salesforce organization.<\/p>\n\n\n\n<p><strong>Steps for setting up an environment for Force.com Migration tool:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\n<p lang=\"en-IN\" align=\"JUSTIFY\"><strong>Setup Environment Variable for Java<\/strong><\/p>\n<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\n<p lang=\"en-IN\" align=\"JUSTIFY\">Set environment variable for it:<\/p>\n<\/li>\n<\/ul>\n\n\n\n<p>Right click My Computer -&gt; Properties -&gt; Advanced System Settings -&gt; Environment variables.<\/p>\n\n\n\n<ol class=\"wp-block-list\" style=\"list-style-type:upper-roman\">\n<li>\n<p lang=\"en-IN\" align=\"JUSTIFY\">If &#8216;Path&#8217; variable doesn&#8217;t exist:<\/p>\n<\/li>\n<\/ol>\n\n\n\n<p>&#8212; create new system variable- \u2018PATH\u2019 &amp; set it to &#8216;C: \\Program Files\\java\\jdk\\bin&#8217; (Your java installation directory)<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\" style=\"list-style-type:upper-roman\">\n<li>\n<p lang=\"en-IN\" align=\"JUSTIFY\">If &#8216;Path&#8217; variable already exists :<\/p>\n<\/li>\n<\/ol>\n\n\n\n<p>&#8212; Alter the &#8216;Path&#8217; variable &amp; append java path with semicolon.<\/p>\n\n\n\n<p>e.g.: &#8216;C: \\WINDOWS\\SYSTEM32;C:\\Program Files\\java\\jdk\\bin&#8217;<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2015\/11\/Force.com-Migration-Tool-1.jpg\"><img decoding=\"async\" src=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2015\/11\/Force.com-Migration-Tool-1.jpg\" alt=\"Force.com Migration Tool - 1\" class=\"wp-image-1427\"\/><\/a><\/figure><\/div>\n\n\n<p><span style=\"color: #ff0000;\"><\/span><\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\">\n<li><span style=\"color: #ff0000;\">&nbsp;<\/span><strong style=\"line-height: 1.6em;\">Installing salesforce_ant<\/strong><\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Download the Force.com migration tool from your Salesforce Org (It can be any org).&nbsp;Go to&nbsp;Setup -&gt; Develop -&gt; Tools -&gt; Force.com Migration Tool.<\/li>\n\n\n\n<li>The file will get downloaded as \u2018salesforce_ant_33.0.zip\u2019. Unzip the zip file to a convenient location say c:\\folder.<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\">\n<li><strong>Installing apache-ant<\/strong><\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Download apache ant tool from <a href=\"http:\/\/ant.apache.org\/bindownload.cgi\" target=\"_blank\" rel=\"noopener\">http:\/\/ant.apache.org\/bindownload.cgi<\/a><\/li>\n\n\n\n<li>The file will get downloaded as \u2018apache-ant-1.9.5-bin.zip. Unzip the zip file to a convenient location say c:\\folder. Using WinZip, WinRAR, 7-zip or similar tools.<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\" start=\"4\">\n<li><strong>Configuration Settings<\/strong><\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Right click My Computer -&gt; Properties -&gt; Advanced System Settings -&gt; Environment variables.<\/li>\n\n\n\n<li>Create a new environment variable called&nbsp;\u2018JAVA_HOME\u2019 &amp; set it to the folder where your JDK is installed.<\/li>\n\n\n\n<li>Create a new environment variable called&nbsp;\u2018ANT_HOME\u2019 that points to the Ant installation folder say C:\\apache-ant-1.8.2-bin.<\/li>\n\n\n\n<li>Append the path to the Apache Ant batch file to the \u2018PATH\u2019 environment variable.<\/li>\n<\/ul>\n\n\n\n<p>For e.g.:- &#8216;C: \\WINDOWS\\SYSTEM32;C:\\Program Files\\java\\jdk\\bin&#8217;<span style=\"color: #ff0000;\">;&nbsp;<\/span><span style=\"color: #ff0000;\"><b>c:\\apache-ant-1.8.2- bin\\bin<\/b><\/span><span style=\"color: #000000;\"><b>\u2019<\/b><\/span><span style=\"color: #ff0000;\">.<\/span><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Inside salesforce_ant_33.0 folder, you can find the&nbsp;ant-salesforce.jar&nbsp;file and some sample configuration files.<\/li>\n<\/ul>\n\n\n\n<p>Copy the jar file mentioned above and&nbsp;paste it into the lib folder of your ant installation directory&nbsp;<strong>\u2018C:\\apache-ant-1.9.4-bin\\apache-ant-1.9.4\\lib\u2018.<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Last step is to verify all installations.<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\" style=\"list-style-type:upper-roman\">\n<li>\n<p lang=\"en-IN\" align=\"JUSTIFY\"><strong>Verifying Java Installation:<\/strong><\/p>\n<\/li>\n<\/ol>\n\n\n\n<p>To verify the successful installation of Java on your computer, type following command on your command prompt.<\/p>\n\n\n\n<p><span style=\"color: #ff0000;\">C :\\&gt; java \u2013version<\/span><br>You should see an output similar to:<br>Java version &#8220;1.8.0_45&#8221;<br>Java(TM) SE Runtime Environment (build 1.8.0_45-b15)<br>Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\" style=\"list-style-type:upper-roman\">\n<li>\n<p lang=\"en-IN\" align=\"JUSTIFY\"><strong>Verifying Apache Ant Installation:<\/strong><\/p>\n<\/li>\n<\/ol>\n\n\n\n<p>To verify the successful installation of Apache Ant on your computer, type following command on your command prompt.<\/p>\n\n\n\n<p><span style=\"color: #ff0000;\">C :\\&gt; ant \u2013version<\/span><br>You should see an output like:<br>Apache Ant(TM) version 1.8.2 compiled on December 20 2010<\/p>\n\n\n\n<p>Thus we have discussed about setting up environment for using Force.com Migration Tool. In next blog, we will discuss about deploying project\/metadata in Salesforce Org using Force.com Migration tool.<\/p>\n\n\n\n<p><span style=\"font-size: Medium;\"><strong>About Us<\/strong><\/span><br><a href=\"https:\/\/www.greytrix.com\" target=\"_blank\" rel=\"noopener\">Greytrix<\/a> as a Salesforce Product development partner offers a wide variety of integration products and services to the end users as well as to the Partners across the globe. We offer Consultation, Configuration, Training and support services in out-of-the-box functionality as well as customizations to incorporate custom business rules and functionalities that require apex code incorporation into the Salesforce platform.<\/p>\n\n\n\n<p><a href=\"https:\/\/www.greytrix.com\" target=\"_blank\" rel=\"noopener\">Greytrix<\/a>&nbsp;has some unique solutions for Cloud CRM such as Salesforce integration with&nbsp;<a href=\"https:\/\/www.greytrix.com\/product\/sage-x3\/gumu-x3-salesforce-integration\" target=\"_blank\" rel=\"noopener\">Sage Enterprise Management (Sage X3)<\/a>,&nbsp;Sage Intacct, <a href=\"https:\/\/www.greytrix.com\/product\/sage-100-erp\/gumu-100-salesforce-integration\" target=\"_blank\" rel=\"noopener\">Sage 100<\/a> and&nbsp;<a href=\"https:\/\/www.greytrix.com\/product\/sage-300-erp\/gumu-300-salesforce-integration\" target=\"_blank\" rel=\"noopener\">Sage 300 (Sage Accpac)<\/a>. We also offer best-in-class Cloud CRM&nbsp;<a href=\"https:\/\/www.greytrix.com\/product\/crm-development\/salesforce-com\" target=\"_blank\" rel=\"noopener\">Salesforce customization and development services<\/a> along with services such as Salesforce <a href=\"https:\/\/www.greytrix.com\/product\/professional-services\/data-migration-services\" target=\"_blank\" rel=\"noopener\">Data Migration<\/a>, <a href=\"https:\/\/www.greytrix.com\/product\/professional-services\/integrated-application-development\" target=\"_blank\" rel=\"noopener\">Integrated App development<\/a>, <a href=\"https:\/\/www.greytrix.com\/product\/professional-services\/custom-development\" target=\"_blank\" rel=\"noopener\">Custom App development<\/a> and <a href=\"https:\/\/www.greytrix.com\/product\/professional-services\/maintenance-support\" target=\"_blank\" rel=\"noopener\">Technical Support<\/a> to business partners and end users.<\/p>\n\n\n\n<p>Greytrix GUMU&#x2122; integration for Sage ERP \u2013 Salesforce is a 5-star app listed on <a href=\"https:\/\/appexchange.salesforce.com\/listingDetail?listingId=a0N30000000psM5EAI\" target=\"_blank\" rel=\"noopener\">Salesforce AppExchange<\/a>.<\/p>\n\n\n\n<p>For more information, please contact us at <a href=\"mailto:salesforce@greytrix.com\">salesforce@greytrix.com<\/a>. We will be glad to assist you.<\/p>\n\n\n\n<p><strong><span style=\"font-size: Medium;\">Related Posts<\/span><\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"http:\/\/www.greytrix.com\/blogs\/salesforce\/2015\/10\/19\/enable-lightning-experience-on-salesforce\/\" target=\"_blank\" rel=\"noopener\">Enable Lightning Experience on Salesforce<\/a><\/li>\n\n\n\n<li><a href=\"http:\/\/www.greytrix.com\/blogs\/salesforce\/2015\/10\/05\/pre-release-orgs-in-salesforce\/\" target=\"_blank\" rel=\"noopener\">Pre-release orgs in Salesforce<\/a><\/li>\n\n\n\n<li><a href=\"http:\/\/www.greytrix.com\/blogs\/salesforce\/2015\/09\/03\/apex-message-as-debug-tool\/\" target=\"_blank\" rel=\"noopener\">Apex message as Debug Tool<\/a><\/li>\n\n\n\n<li><a href=\"http:\/\/www.greytrix.com\/blogs\/salesforce\/2015\/09\/03\/deploying-project-using-force-com-ide\/\" target=\"_blank\" rel=\"noopener\">Deploying project using Force.com IDE<\/a><\/li>\n\n\n\n<li><a href=\"http:\/\/www.greytrix.com\/blogs\/salesforce\/2015\/09\/02\/creating-project-using-force-com-ide\/\" target=\"_blank\" rel=\"noopener\">Creating Project using Force.com IDE<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>In our previous blog \u201cCreating Project using Force.com IDE\u201d, we discussed one of the methods of Salesforce metadata migration i.e. migration using Force.com IDE. In this blog we will discuss another tool used for metadata migration in Salesforce i.e. Ant\/Java based Force.com Migration Tool. Real-time, bi-directional, multi-company \u2013 Sage ERP Integration with Salesforce The Force.com\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2015\/11\/23\/using-force-com-migration-tool-part-i-configuration\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[51,237],"class_list":["post-1424","post","type-post","status-publish","format-standard","hentry","category-salesforce-srv","tag-configuration","tag-migration"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/posts\/1424","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/comments?post=1424"}],"version-history":[{"count":3,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/posts\/1424\/revisions"}],"predecessor-version":[{"id":10538,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/posts\/1424\/revisions\/10538"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/media?parent=1424"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/categories?post=1424"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/tags?post=1424"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}