About Me

My photo
India
Hey there, lovely people! I'm Hemant Menaria, and I'm passionate about programming. Having completed my MCA in 2011, I've delved into the world of coding with fervor. I believe in sharing knowledge, making complex concepts easy to grasp for everyone. JAVA, PHP, and ANDROID hold a special place in my heart, and I spend most of my time immersed in them. Currently, I'm deeply engaged in API/Webservice frameworks and crafting Hybrid mobile applications to enhance flexibility in the digital realm. If you ever find yourself stuck with a programming challenge, feel free to reach out to me at +91-8955499900 or drop me a line at hemantmenaria008@gmail.com. I'm always eager to help fellow enthusiasts navigate the intricacies of coding!

Sunday, April 26, 2020

Set CATALINA_HOME, JRE_HOME, JAVA_HOME in environment variable using command line


To set CATALINA_HOME, JRE_HOME, JAVA_HOME in environment variable 

To run apache tomcat server this is a basic requirement-

1- Open command Prompt=> Run as administrator

2- Now type below command one by one.
setx JAVA_HOME -m "Java/JDK_Installation_Directory_Path";
setx JRE_HOME -m "Java/JRE_Installation_Directory_Path";
setx CATALINA_HOME -m "Tomcat_Directory_Path/bin";

3-Now restart system.

4- To verify environment variable run following command one by one-
echo %JAVA_HOME%
echo %JRE_HOME%
echo %CATALINA_HOME%

Now run tomcat.(in case of installer)
or
In case of tomcat downloaded folder-
1- Open command Prompt=> Run as administrator
2- Go to tomcat directory/bin folder.
3- execute/run startup.bat
4- you will get a separate window which shows tomcat status.

Its ready to play.

No comments:

Post a Comment