rooster step doc for win os

Upload: uppubalu

Post on 05-Apr-2018

219 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/31/2019 Rooster Step Doc for Win OS

    1/38

    Rooster Step Document for installing Java, Tomcat5.5,Mysql5 And

    Rooster Application for Windows OS

    Step document to install Java in Windows OS

    To compile and run a java program we need to install java platform. JDK (Java

    Development Kit). JDK is the basic set of tools required to compile and run java programs.

    This section enables you to download JDK and teaches you the steps to install it.

    Download and Install JDK (Java Development Kit)

    You can download the latest version of jdk from

    http://java.sun.com/javase/downloads/index.jsp. Once you download the exe file you can

    now install it. Just follow as mentioned:

    To install the jdk, double click on the downloaded exe file (jdk-6u1-windows-i586-p.exe)

    Step 1. Double Click the icon of downloaded exe.

    You will see jdk 6 update 1 window as shown below.

    http://java.sun.com/javase/downloads/index.jsphttp://java.sun.com/javase/downloads/index.jsp
  • 7/31/2019 Rooster Step Doc for Win OS

    2/38

    Step 2:Now a "License Agreement" window opens. Just read the agreement and click

    "Accept" button to accept and go further.

    Step 3:Now a "Custom Setup" window opens.

  • 7/31/2019 Rooster Step Doc for Win OS

    3/38

    Step 4: Click on "Change" button to choose the installation directory. Here it is

    "C:\Program Files\ Java\jdk1.6.0_01". Now click on "OK" button.

  • 7/31/2019 Rooster Step Doc for Win OS

    4/38

    Clicking the "OK" button starts the installation. It is shown in the following figure.

  • 7/31/2019 Rooster Step Doc for Win OS

    5/38

    Step 5: Next window asks to install Runtime Environment.

  • 7/31/2019 Rooster Step Doc for Win OS

    6/38

    Click the "Change"button to choose the installation directory of Runtime Environment.

    We prefer not to change it. So click"Next"button.

    Step 6: Click "OK" button starts the installation.

  • 7/31/2019 Rooster Step Doc for Win OS

    7/38

    Step 7: Now "Complete" window appears indicating that installation of jdk 1.6 has

    completed successfully. Click"Finish" button to exit from the installation process.

  • 7/31/2019 Rooster Step Doc for Win OS

    8/38

    Step 8: The above installation will create two folders "jdk1.6.0_01" and "jre1.6.0_01" in

    "C:\ Program Files\ java" folder.

    Step 9: To make available Java Compilerand Runtime Environment for compiling andrunning java programs , we set the system environment variables.

    First of all select "My Computer" icon and right click the mouse button. Now click on

    "system Properties" option. It provides the "System Properties" window , click the

    'Advanced' tab. Then Click the "Environment Variables" button. It provides

    "Environment Variables" window. Now select the path in System variables and click

    'Edit' button. The"Edit System Variable" window will open. Add "c:\Program

    Files\Java\jdk1.6.0_01\bin" to 'variable value' and click'Ok', 'Ok' and 'Ok'buttons.

    http://www.roseindia.net/java/learn-java-in-a-day/download-and-install-java.shtmlhttp://www.roseindia.net/java/learn-java-in-a-day/download-and-install-java.shtml
  • 7/31/2019 Rooster Step Doc for Win OS

    9/38

    Step 10:Now set the JAVA_HOME variable and set its value to " C:\Program

    Files\Java\jdk1.6.0_01 ". If this variable has not beendeclared earlier then create a newsystem variable by clicking on "New"button and give variable name as "JAVA_HOME"and variable value as " C:\Program Files\Java\jdk1.6.0_01 ".Now click"OK". This

    variable is used by otherapplications

    to find jdk installation directory. For example, Tomcat serverneeds "JAVA_HOME"variable to find the installation directory of jdk.

    http://www.roseindia.net/java/learn-java-in-a-day/download-and-install-java.shtmlhttp://www.roseindia.net/java/learn-java-in-a-day/download-and-install-java.shtmlhttp://www.roseindia.net/java/learn-java-in-a-day/download-and-install-java.shtmlhttp://www.roseindia.net/java/learn-java-in-a-day/download-and-install-java.shtml
  • 7/31/2019 Rooster Step Doc for Win OS

    10/38

    Step 11:Now this is the final step to check that you have installed jdk successfully and it is

    working fine. Just go to the command prompt and typejavac and hit enter key you will getthe screen as shown below :

  • 7/31/2019 Rooster Step Doc for Win OS

    11/38

  • 7/31/2019 Rooster Step Doc for Win OS

    12/38

    Tomcat Install for Windows OS

    Click the link: http://tomcat.apache.org/

    Installation of JDK:

    Before beginning the process of installing Tomcat on your system, ensure first theavailability of JDK on your system program directory.Install it on your system if not

    already installed (because any version of tomcat requires the Java 1.6 or higher versions)

    and then set the class path (environment variable) of JDK

    Step 1:

    The process of installing Tomcat 5.5 begins here from now. It takes various steps for

    installing and configuring the Tomcat 5.5.

    For Windows OS, Tomcat comes in two forms: .zip file and .exe file (the Windows

    installer file). Here we are exploring the installation process by using the .exe file. Firstunpack the zipped file and simply execute the '.exe' file.

    http://tomcat.apache.org/download-60.cgihttp://www.roseindia.net/quickguide/tomcat/tomcatdownloadinstall.shtmlhttp://tomcat.apache.org/download-60.cgihttp://www.roseindia.net/quickguide/tomcat/tomcatdownloadinstall.shtml
  • 7/31/2019 Rooster Step Doc for Win OS

    13/38

    A Welcome screen shot appears that shows the beginning of installation process. Just click

    on the 'Next' button to proceed the installation process.

    Steps 2:

    A screen of 'License Agreement' displays.

    Click on the 'I Agree' button.

    Step 3:

    A screen shot appears asking for the Choose component

  • 7/31/2019 Rooster Step Doc for Win OS

    14/38

    Choose the default components and click on the 'Next' button.

    Step 4:

    A screen shot appears asking for the 'installing location'

  • 7/31/2019 Rooster Step Doc for Win OS

    15/38

    Choose the default components and click on the 'Next' button.

    Step 5:

    A screen shot of 'Configuration Options' displays on the screen. Choose the location for the

    Tomcat files as per your convenience. You can also opt the default Location

  • 7/31/2019 Rooster Step Doc for Win OS

    16/38

    The port number will be your choice on which you want to run the tomcat server. The port

    number 8080 is the default port value for tomcat server to proceed the HTTP requests. Theuser can also change the 'port number' after completing the process of installation; for this,

    users have to follow the following tips.

    Go to the specified location as " Tomcat 6.0 \conf \server.xml ". Within the server.xml filechoose "Connector" tag and change the port number.

    Now, click on the 'Next' button to further proceed the installation process.

    Step 6:

    A Window of Java Virtual Machine displays on the screen

  • 7/31/2019 Rooster Step Doc for Win OS

    17/38

    This window asks for the location of the installed Java Virtual Machine. Browse the

    location of the JRE folder and click on the Install button. This will install the Apache

    tomcat at the specified location.

    Step 7:

    A processing window of installing displays on the screen.

  • 7/31/2019 Rooster Step Doc for Win OS

    18/38

    To get the information about installer click on the "Show details" button

    Step 8:

    A screen shot of 'Tomcat Completion' displays on the screen.

  • 7/31/2019 Rooster Step Doc for Win OS

    19/38

    Click on the 'Finish' button.

    Step 9:

    A window of Apache Service Manager appears with displaying the running process.

    Let the running process goes on.

    Step 10:

    After completing the installation process, the Apache Tomcat Manager appears on thetoolbar panel like shown in the below picture.

  • 7/31/2019 Rooster Step Doc for Win OS

    20/38

    Configuring Tomcat Manager

    To Configure the Tomcat Manager, there are two ways; either user can configure Tomcat

    directly from the toolbar panel or can configure it from Control Panel Section.

    i-) Configuring from toolbar Panel

    To Configure Apache Tomcat web server from the toolbar panel, you have to press 'double

    click' on the appeared icon.

    A configured window appears on the desktop. Now, just click on the Startup button. Theinstallation process will be completed.

    ii-) Configuration from the Control Panel

    http://www.roseindia.net/quickguide/tomcat/tomcatdownloadinstall.shtmlhttp://www.roseindia.net/quickguide/tomcat/tomcatdownloadinstall.shtml
  • 7/31/2019 Rooster Step Doc for Win OS

    21/38

    To configure the Apache Tomcat Manager, Users will have to follow the follwing steps:

    Click on the Start up button -- select Control Panel -- Administrator Tool -- Services --

    select Apache Tomcat.

    The following screen displays on the monitor.

    Double click on the Apache Tomcat. The window of Apache Tomcat Properties appears onthe screen.

  • 7/31/2019 Rooster Step Doc for Win OS

    22/38

    Now, Click on the start up button. The Apache Tomcat is now ready to function.

    To operate it, follow the below steps of processing.

    Start the Tomcat Server:

    1.Start the tomcat server from the bin folder of Tomcat 5.5 directory by double clicking the

    "tomcat5.5.exe" file.

    OR create a shortcut of this .exe file at your desktop.2. Now Open web browser and type URL http://localhost:8080 in the address bar to test the

    server

    3. To Stop the Tomcat Server: Stop the server by pressing the "Ctrl + c" keys.

    The screen of Apache Tomcat software looks like this:

  • 7/31/2019 Rooster Step Doc for Win OS

    23/38

  • 7/31/2019 Rooster Step Doc for Win OS

    24/38

    Mysql Install for Windows OS

    Installing and configuring MySQL

    Steps 1 and 2 - Download and Install the latest version.

    Step 1 - Download the Latest stable version 5.

    Go to MySQL Downloads page for the latest stable release. This is the binary version and

    contains an installer package which does most of the work for you these days. The need for

    manual editing of config files has therefore been reduced.

    Download to a temporary location, I have a 'Master Programs' folder which I download toand extract from there.

    Step 2 - Install MySQL

    Extract the downloaded zip into its current location, then run the resulting 'setup.exe' file to

    start the mysql installer.

    To quickly get a request up and running, following are all images to show step by step what

    to do on the installation screens. I will over the next few days, break this down with writtencomments and span it over a few pages.

    Hank, this should get you up and running!

    http://www.mysql.com/downloads/mysql-4.1.htmlhttp://www.mysql.com/downloads/mysql-4.1.html
  • 7/31/2019 Rooster Step Doc for Win OS

    25/38

  • 7/31/2019 Rooster Step Doc for Win OS

    26/38

  • 7/31/2019 Rooster Step Doc for Win OS

    27/38

  • 7/31/2019 Rooster Step Doc for Win OS

    28/38

  • 7/31/2019 Rooster Step Doc for Win OS

    29/38

  • 7/31/2019 Rooster Step Doc for Win OS

    30/38

  • 7/31/2019 Rooster Step Doc for Win OS

    31/38

  • 7/31/2019 Rooster Step Doc for Win OS

    32/38

  • 7/31/2019 Rooster Step Doc for Win OS

    33/38

  • 7/31/2019 Rooster Step Doc for Win OS

    34/38

  • 7/31/2019 Rooster Step Doc for Win OS

    35/38

  • 7/31/2019 Rooster Step Doc for Win OS

    36/38

    Rooster Export For Windows OS:

    1. Download rooster and save it in any folder with any specified name.

    Exrooster

    2. Copy the folder and Paste it inside Tomcat server webapps forderEx:

    C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps \

    3. To open struts-config.xml.Goto rooster/WEB-INF/ struts-config.xml

    Modify your Database Name, Database User Name and Password

    Ex:

    4. To open rooster.properties.Goto rooster/WEB-INF/classes/rooster.properties

    Modify your Database Name, Database User Name and Password

    ExDATABASE_CONNECTION_URL=jdbc:mysql://localhost:3306/rooster_1

    DATABASE_CONNECTION_USERNAME=root

    DATABASE_CONNECTION_PASSWORD=root

    5. To open config.xml.Goto rooster/WEB-INF/config/config.xml

    Modify your Database Name, Database User Name and Password

    Exfile

    jdbc:mysql://localhost:3306/rooster_1

    com.mysql.jdbc.Driver

    root

    root

    6. To open logConfig.properties.Goto rooster/WEB-INF/classes/

    logConfig.propertiesTo Change log config file path

    Exlog4j.appender.roosterlog.File=D:/Running_Pro_NewEclips/Rooster/log/rooster.log

    7. To Add Gooogle Map key in to rooster application for this.

  • 7/31/2019 Rooster Step Doc for Win OS

    37/38

    a. Copy and paste this link in addressbar

    http://code.google.com/apis/maps/signup.html

    b. Enter your website URL then click Generate API Key

    c. Enter your Gmail user id and Password.

    d. After login you got Google Map Key

    e. Copy the Google Map Key and Paste it in

    rooster/classes/rooster.properties files

    Ex :GOOGLE_MAP_KEY=ABQIAAAAz7uTtv40QiYhSAwsvpNF5xS2AJWXKF

    H8CHxFRAAHZWk2-cMdSxSoAuuXOtIEvFEBeXwsPCJ1jeovTg

    8. Implementing Rooster Database.

    a. Click StartAll programsMYSQLMysql Server 5.0

    MYSQL command Line Clientb. Create new database

    Ex mysql> create database rooster_app

    c. Use the database

    Ex mysql > use rooster_app

    d. Run rooster-db-structure.sql file which is in dbscript folder

    inside the application to create Database structure for rooster

    Ex: \. Your application folder\rooster\roosterdb.sql

    e. Run initial-setup.sql with the help of README.txt file in

    dbscript folder to create user.

    9. Start tomcat server,

    10. Enter URL address in browsers Address bar

    http://code.google.com/apis/maps/signup.htmlhttp://code.google.com/apis/maps/signup.html
  • 7/31/2019 Rooster Step Doc for Win OS

    38/38