Java Reference
In-Depth Information
Figure B.5: Edit the Path
Add the path to your BIN directory to the front of the system path. Make sure you put a
semicolon (;) at the end of your BIN directory's path. Semicolons separate elements of the
system path. Also, be sure there are no additional spaces between elements of the system
path.
You will also need to add JAVA_HOME and ANT_HOME to your “System Variables”.
JAVA_HOME should be set to the directory that Java is installed under. For my system,
JAVA_HOME is set to:
C:\Program Files\Java\jdk1.6
You also need to set ANT_HOME to the directory you installed ant into. For my system
ANT_HOME is set to:
C:\apache-ant-1.6.5
You can now test Apache Ant. Open a “Command Prompt” window and enter the com-
mand “ant”. You should see ant display an error message, as seen in Figure B.6.
Search WWH ::




Custom Search