JOnAS Tutorial | ||
---|---|---|
<<< Previous | Configuring Your Environment | Next >>> |
After installing Ant as described in the section Apache Ant, you have to set the ANT_HOME environment variable and update your PATH variable.
If you want Ant to automatically set the CLASSPATH variable, you have to correctly set your JAVA_HOME environment variable as described in the section Setting Up Your Java Environment |
Here are example settings for the Unix and Windows platforms:
Unix platforms: Assuming that you installed Ant in the /usr/local/apache-ant-[version] directory, you should enter the following commands:
bash>export ANT_HOME=/usr/local/apache-ant-[version] bash>export PATH=${PATH}:${ANT_HOME}/bin |
tcsh>setenv ANT_HOME /usr/local/apache-ant-[version] tcsh>setenv PATH ${PATH}:${ANT_HOME}/bin |
Windows platforms: Assuming that you installed Ant in the C:\apache-ant-[version] directory, you should enter the following commands:
C:>set ANT_HOME=c:\apache-ant-[version] C:>set PATH=%PATH%;%ANT_HOME%\bin |
<<< Previous |
Home
Up | Next >>> |