Hello Joshi
These are called environment variables and have a specific value.
In this case JAVA_HOME and ANT_HOME are the filesystem locations where
you have Java and Apache ANT installed on your system.
Setting environment variables in Windows is done using the 'SET' command
and in linux environment using the 'export' command.
FOR LINUX do the following:-
Suppose you have Java jdk installed in linux in /opt/jdk folder and
Apache ANT installed in /opt/ant
then use these command to have them properly set
export JAVA_HOME=/opt/jdk
export ANT_HOME=/opt/ant
To use the commands provided by jdk and ant you must also add the
JAVA_HOME and ANT_HOME to the PATH environment variable also. To do this
use the following command
export PATH=$JAVA_HAOME/bin:$ANT_HOME/bin:$PATH
Note that you have to do this every time you open a new terminal window
or a new shell.
To avoid this, add the above three commands to the $HOME/.bashrc file
FOR WINDOWS do the following:-
Suppose you have Java jdk installed in windows in C:\opt\jdk folder and
Apache ANT installed in C:\opt\ant
then use these command to have them properly set
set JAVA_HOME=C:\opt\jdk
set ANT_HOME=C:\opt\ant
to use the commands provided by jdk and ant you must also add the
JAVA_HOME and ANT_HOME to the PATH environment variable also. To do this
use the following command
set PATH=%JAVA_HAOME%\bin;%ANT_HOME%\bin:%PATH%
Note that you have to do this every time you open a new command window
or a new shell.
To avoid this, add the environment variable in Windows using this guide
<http://vlaurie.com/computers2/Articles/environment.htm>
I hope this would help.
cheers and good luck.
Muhammad Junaid Malik
Devanshu Joshi wrote:
Sir,
We are trying to implement a resource sharing grid portal. Pls help us
in setting JAVA_HOME variable and ANT_HOME in globus toolkit. We
already installed globus toolkit as per the guidelines of quickstart
file available at globus.org. We installed certificates From CA. But
now, further commands are not running because if d lack of setting of
JAVA_HOME and ANT_HOME. Waiting for Reply.
Thanks.
With Regards,
Devanshu Joshi
------------------------------------------------------------------------
Hotmail: Powerful Free email with security by Microsoft. Get it now.
<https://signup.live.com/signup.aspx?id=60969>