VisualGuideToBuildingStendhalStep2: Difference between revisions
imported>Oslsachem No edit summary |
imported>Oslsachem No edit summary |
(No difference)
| |
Revision as of 22:50, 27 March 2006
Step 2. Install and Configure Ant
Ant is a frontend to the java compiler that makes the compiling process as easy as typing ant (with or without options) inside a folder where there is a build.xml file.
Step 2.1. Install Ant
Go to the Apache Ant's website and download the following binary installer package: apache-ant-1.6.5-bin.zip
Unzip ant under C:\ant folder
Step 2.2. Configure Ant
Go to Start-> Configuration -> Control Panel
Select the Advanced tab and then click on Environment Variables:
In User Variables click on New
Set Variable name to ANT_HOME and Variable value to C:\ant and click on Accept
Again, in User Variables click on New
Set Variable name to JAVA_HOME and Variable value to C:\Program Files\Java\jdk1.5.0_06 (or wherever you have installed java JDK) and click on Accept
Now look for Path variable in System Variables and click on Modify:
Note: The PATH is a series of directories separated by semi-colons (;). Microsoft Windows looks for programs in the PATH directories in order, from left to right. You should only have one bin directory for Ant in the path at a time (those following the first are ignored), so if one is already present, you can update it to C:\ant\bin
Warning: Be careful when editing the path or you can end with an unworking system. Just be careful enough to add the values to the end of your path after a semmicolon without deleting any other previous values. When you are in doubt that you may have deleted something that was there previously, just click on Cancel and begin again.
Click on the Variable value text box, go to the end with End key and add ;C:\ant (ommit the preceding semicolon if there's already one) and click on Accept
Note: Capitalization doesn't matter.
Click on Accept:
Again, click on Accept:
The new path takes effect in each new Command Prompt window you open after setting the PATH variable.
Go to Step 3. Install Stendhal-server sources or map editor CVS sources