Thursday 25 July 2013




Installing Apache Tomcat

1 . Downloading Apache Tomcat
http://tomcat.apache.org/download-60.cgi
NOTE:This tutorial uses “Apache Tomcat 6.0.35″ version.If you need to install Tomcat, you can download it from this location.



2. Installing Using Windows Installer

After downloading the Windows installer file (.exe) file, simply double-click on the .exe file and follow the steps below to install Apache Tomcat.

2.1 Welcome Screen

Simply click on the ‘Next‘ button to continue installation process.





2.2 Licence Agreement Screen 

Accept the terms of the agreement by clicking on ‘I Agree‘ button




2.3 Choose the components

Choose the features of Apache Tomcat you want to install by checking the components and click ‘Next‘.






2.4 Tomcat Configuration options

  • The default port number for Tomcat to process HTTP requests is 8080. 
  • You can either change the port number here or change it later after the installation in server.xml which is located in/conf/server.xml. We recommend to have the default value. 
  • You can provide the username and password for Administrator login but here, we leave it as blank. 

Now, click on the ‘Next‘ button.



2.5 Installed JRE path

  • The installer uses the registry to determine the base path of a Java 5 or later JRE, including the JRE installed as part of the full JDK. 
  • When running on a 64-bit operating system, the installer will first look for a 64-bit JRE and only look for a 32-bit JRE if a 64-bit JRE is not found. 
  • It is not mandatory to use the default JRE detected by the installer. Any installed Java 5 or later JRE (32-bit or 64-bit) may be used by clicking on the browse button and click ‘Next‘
.




2.6 Choose Installation Location 

In Windows, by default the location will be provided as ‘C:\Program Files\Apache Software Foundation\Tomcat 6.0′. But for simplicity, we recommend you to use ‘C:\Tomcat6‘ as shown below and click ‘Install‘.





Installing window is displayed.




Tomcat setup completion window is displayed as shown below and click on ‘Finish‘ button.





Apache Service Manager window appears which is attempting to start the Tomcat service





3. Test your Installation


Open browser and type http://localhost:8080. You should see the Apache Tomcat home page as shown below










Wednesday 24 July 2013

 Installing JDK on Windows


1.  Download Java Developemnet Kit (JDK)
You can download latest version of JDK from

  1.  http://www.oracle.com/technetwork/java/javase/downloads/index.html





  2. Installing JDK

    2.1 Double click the downloaded JDK exe file. Click the “Next” button.



    2.2   The “Custom Setup” window allows you to select which parts of the JDK you want to install. If you want to change the installation directory click on change and specify the location where jdk will be installed. It is recommended to stick with the default settings. Click the “Next” button.



    2.3  JDK “installing” window appears. It will take a few minutes to install the program features of the JDK.

    2.4   By installing JDK, JRE will also be installed. Select Java Runtime Environment (JRE) installation location.












    2.5   When the “Complete” screen appears, click on the “Finish” button. Now you have successfully installed the Java Development Kit!

  3. Configuring Installed JDK on windows
    The installed JDK must be configured to the windows environment so that the Java compiler (javac) and runtime (java) becomes available for compiling and running the Java application from any location on Windows.
    NOTE: If JDK is not configured on windows environment then to compile and run your Java applications you must place them in <JAVA_HOME>/bin/ folder.
    For Windows Vista/7:
    3.1  
    Click on Start -> Right click Computer -> Select Properties


    3.2 Click on “Advanced system settings” from left side Tasks menu.


    3.3 Click on “Advanced” tab and click on “Environment Variables…”.

          
    Select Path variable from “System variables” and click on “Edit…” and go to the end of the “Variable Value” and place a semi-colon (;) and add “<Your JDK installation folder>\bin” path as shown below.


    3.4  Click OK -> OK -> OK. Now you have successfully configured JDK and ready to develop applications in Java.

    .3.5  Now open Command prompt and type “javac -version” and it should show the version number which you installed.



    javac is the primary Java compiler, included in the Java Development Kit (JDK).
    Also type “java -version” which is Java runtime included in JDK. Sometimes you may want to restart the computer for the PATH settings to take effect.
    Done! If you haven’t encountered any problems, then the installation and configuration is complete.