Saturday, August 6, 2011

How to Install Apache-Tomcat Server in Windows




Hi friends its after a long time. Today I'm going to tell you how to install Apache-Tomcat server in Windows operating system.

Its no big deal. Just follow the instructions below :D

  1. First of all you need to install JDk(java development kit) and of course Apache-Tomcat in your machine. If it already installed JDK you can find it among the Program Files.

    Here is the path to find JDK (assume your program files are installed in 'C' drive)
    MyComputer -> C drive -> program files -> java -> JDK


    If no Apache-Tomcat server download it from here
    If you haven't already installed JDK don't worry. Download it from here


  2. Setting JAVA_HOME path to the JDK in command prompt

    • Open command prompt(either type cmd on the search bar or Go to All programs -> Accessories -> Comand Prompt)

    • Type this in Comand Prompt
      set JAVA_HOME=(path to the JDK) without brackets*




  3. Setting CATALINA_HOME path in Command Prompt

    • Type below path in command prompt and press enter

      set CATALINA_HOME=(path of the Apache-Tomcat folder)

      this path is where you save the Apache-Tomcat folder. In my case it is in the desktop





  4. Follow the below command to run the server.

    • Go to Apache-Tomcat server bin folder in command prompt

      cd (path of Apache-Tomcat server bin folder) without brackets*




    • Finally type catalina start in the command prompt





  5. If every thing OK Server will begin to run with opening TomCat prompt






  6. Now open the web browser and type localhost:8080 on address bar then you will get the Apache-Tomcat server home page


If this post help you be kind enough to leave a comment. :D

No comments:

Post a Comment