Java Reference
In-Depth Information
Figure D.2: A Successful Ant Unpack
You no longer need to be the super user for the rest of this install. Enter the following to
exit super user status:
exit
You should also move back to your user directory, with the following command:
cd
Now you need to edit your profile using the vi editor. This will allow you to easily start
the ant application. Use the following command:
vi .bash_profile
Once inside of vi , move to the bottom of the file and press ā€œiā€. This will put you into
insert mode. Enter the following three lines at the bottom of your file. Enter them exactly as
you see here. Adjust for version differences if necessary.
export JAVA_HOME=/Library/java/Home
export ANT_HOME=/usr/local/apache-ant-1.6.5
export PATH=${PATH}:${ANT_HOME}/bin
Search WWH ::




Custom Search