JAVA WORLD

Saturday, February 26, 2011

Setting the JAVA_HOME , CATALINA_HOME Environment Variable on Windows

Setting the JAVA_HOME , CATALINA_HOME Environment Variable on Windows

One can do using command prompt
1. set JAVA_HOME=C:\”top level directory of your java install”
2. set CATALINA_HOME=C:\”top level directory of your Tomcat install”
3. set PATH=%PATH%;%JAVA_HOME%\bin;%CATALINA_HOME%\bin

Or you can do the same

Go to system properties.
Go to environment variables and add a new variable with the name JAVA_HOME and provide variable value as C:\”top level directory of your java install”.
Go to environment variables and add a new variable with the name CATALINA_HOME and provide variable value as C:\”top level directory of your Tomcat install”.
In path variable add a new variable value as ;%CATALINA_HOME%\bin;

No comments: