18
WA1927 Introduction to Struts 2.x Using Eclipse - Classroom Setup Guide WA1927 Introduction to Struts 2.x Using Eclipse Classroom Setup Guide Web Age Solutions Inc. Copyright Web Age Solutions Inc. 1

WA1927 Introduction to Struts 2.x Using Eclipse · • C:\Software\mysql-essential-5.1.30-win32.msi ... WA1927 Introduction to Struts 2.x Using Eclipse - Classroom Setup Guide Part

  • Upload
    ngodieu

  • View
    214

  • Download
    0

Embed Size (px)

Citation preview

WA1927 Introduction to Struts 2.x Using Eclipse - Classroom Setup Guide

WA1927 Introduction to Struts 2.x UsingEclipse

Classroom Setup Guide

Web Age Solutions Inc.

Copyright Web Age Solutions Inc. 1

WA1927 Introduction to Struts 2.x Using Eclipse - Classroom Setup Guide

Table of ContentsPart 1 - Minimum Hardware Requirements .........................................................................................3Part 2 - Minimum Software Requirements ...........................................................................................3Part 3 - Software Provided....................................................................................................................4Part 4 - Preparation................................................................................................................................4Part 5 - Installing JDK 6 Update 10......................................................................................................5Part 6 - Installing MySQL 5.1.30........................................................................................................10Part 7 - Verification of Eclipse JEE Galileo........................................................................................16Part 8 - Verification of Apache Tomcat 6_0_26..................................................................................17

Copyright Web Age Solutions Inc. 2

WA1927 Introduction to Struts 2.x Using Eclipse - Classroom Setup Guide

Part 1 - Minimum Hardware Requirements

● 2 Ghz Pentium IV

● 1.5 GB RAM minimum, 2 GB or more recommended

● 10 GB free on the C drive

● Network connectivity to the internet

● USB Port

Part 2 - Minimum Software Requirements

● Microsoft Windows 2000 SP4 or Windows XP SP2

● Zip file extraction utility like WinZip

● Internet Explorer or Mozilla Firefox

● Struts_2.1.8.1*

● MySQL 5.1.30*

● Tomcat 6.0.26*

● JDK 6 Update 10*

● Eclipse JEE Galileo*

* - indicates software provided as part of the courseware.

Copyright Web Age Solutions Inc. 3

WA1927 Introduction to Struts 2.x Using Eclipse - Classroom Setup Guide

Part 3 - Software Provided

You will receive the following file:

• WA1927.ZIP

All other software listed under Minimum Software Requirements is either commercially licensed software that you must provide or software that is freely available off the Internet.

Part 4 - Preparation

__1. Extract the WA1927.ZIP file to C:\

__2. Review that the following folders were created:

• C:\LabFiles

• C:\Software

• C:\Software\apache-tomcat-6.0.26

• C:\Software\eclipse

• C:\Software\struts-2.1.8.1

__3. Review that the following files were created:

• C:\Software\jdk-6u10-windows-i586-p.exe

• C:\Software\mysql-connector-java-5.1.7-bin.jar

• C:\Software\mysql-essential-5.1.30-win32.msi

Copyright Web Age Solutions Inc. 4

WA1927 Introduction to Struts 2.x Using Eclipse - Classroom Setup Guide

Part 5 - Installing JDK 6 Update 10

__1. Make sure there is no previous Java version already installed on the system. You can check this by using the Windows “Add/Remove Programs” utility. For the best compatibility with the labs it is suggested that all previous versions of Java be uninstalled before proceeding with these instructions. If this is an issue, please contact the setup support person for the course.

__2. From the C:\Software directory run the following file:

jdk-6u10-windows-i586-p.exe

__3. After a few moments the license agreement will appear. Press the Accept button to move to the next step.

__4. Leave the defaults for installation location and options, and press the Next button.

Copyright Web Age Solutions Inc. 5

WA1927 Introduction to Struts 2.x Using Eclipse - Classroom Setup Guide

The installation will begin installing files.

__5. The Destination Folder will appear, leave the default folder and click Next.

Wait until the software is completely installed.

__6. Click Finish.

Copyright Web Age Solutions Inc. 6

WA1927 Introduction to Struts 2.x Using Eclipse - Classroom Setup Guide

__7. Close any browser that appears asking to register the JDK software.

Set the Environment variables.

__1. From Start > Control Panel, double click on System.

__2. Select the Advanced tab.

__3. Click the Environment Variables button.

__4. From the System Variables list, select Path and click Edit.

__5. At the beginning of the line enter the following:

C:\Program Files\Java\jdk1.6.0_10\bin;

Copyright Web Age Solutions Inc. 7

WA1927 Introduction to Struts 2.x Using Eclipse - Classroom Setup Guide

__6. Click OK.

__7. Under the System Variables list, click the New button.

__8. Enter JAVA_HOME as Variable name.

__9. As Variable value enter the following. This is similar to the previous variable but without the 'bin' directory.

C:\Program Files\Java\jdk1.6.0_10

__10. Click OK to create the variable.

__11. Click OK to close the Environment Variables window.

__12. Click OK to close the System Properties window.

__13. Restart the computer.

Copyright Web Age Solutions Inc. 8

WA1927 Introduction to Struts 2.x Using Eclipse - Classroom Setup Guide

Verification of JDK 6 Update 10

__1. Open a Windows command prompt. You can do this by selecting 'Start -> Run', entering 'cmd', and then pressing the OK button.

__2. Enter the following command:

java -version

Make sure you see the response shown below.

__3. Enter the following command:

javac

Verify that you get the options to run the Java compiler:

__4. Close the command prompt window and any extra windows that are open.

JDK 6 Update 10 is now installed!

Copyright Web Age Solutions Inc. 9

WA1927 Introduction to Struts 2.x Using Eclipse - Classroom Setup Guide

Part 6 - Installing MySQL 5.1.30

__1. From C:\Software, launch mysql-essential-5.1.30-win32.msi

The Setup Wizard window will launch.

__2. Click Next.

__3. In the Setup Type window leave Typical selected and click Next.

Copyright Web Age Solutions Inc. 10

WA1927 Introduction to Struts 2.x Using Eclipse - Classroom Setup Guide

__4. Click Install. If prompted by Windows security allow the installation to continue.

Note: The destination folder will be slightly different on Windows Vista and XP.

__5. The installation will start and the MySQL Enterprise window will appear. Click Next.

Copyright Web Age Solutions Inc. 11

WA1927 Introduction to Struts 2.x Using Eclipse - Classroom Setup Guide

__6. The MySQL Monitoring and Advisory Service window will appear. Click Next.

__7. The Wizard Completed window will appear. Make sure the Configure the MySQL Server now option is checked and click Finish.

Copyright Web Age Solutions Inc. 12

WA1927 Introduction to Struts 2.x Using Eclipse - Classroom Setup Guide

__8. The MySQL Server Instance Configuration Wizard window will appear. Click Next.

Note: If the wizard does not appear select Start → Programs → MySQL → MySQL Server 5.1 → MySQL Server Instance Config Wizard. If prompted by Windows security allow the program to execute.

__9. In the Instance Configuration window, select Standard Configuration. Click Next.

Copyright Web Age Solutions Inc. 13

WA1927 Introduction to Struts 2.x Using Eclipse - Classroom Setup Guide

__10. When presented with the Windows options, check the option for Include Bin Directory in Windows PATH. Click Next.

__11. The Security options window will appear. For the New root password and Confirm fields, enter root123 and then click Next.

__12. The Ready to Execute window will appear. Click Execute.

Copyright Web Age Solutions Inc. 14

WA1927 Introduction to Struts 2.x Using Eclipse - Classroom Setup Guide

__13. The database will configure. This will take a moment. Eventually, you should see the following:

__14. Click Finish.

MySQL has been installed.

Copyright Web Age Solutions Inc. 15

WA1927 Introduction to Struts 2.x Using Eclipse - Classroom Setup Guide

Part 7 - Verification of Eclipse JEE Galileo

__1. Run C:\Software\eclipse\eclipse.exe

Eclipse Galileo will start.

__2. A Workspace Launcher dialog will appear. Change the workspace directory to:

c:\workspace

__3. Click OK.

Eclipse will open showing the Welcome page.

Copyright Web Age Solutions Inc. 16

WA1927 Introduction to Struts 2.x Using Eclipse - Classroom Setup Guide

__4. Close the Eclipse welcome page by clicking the X at top left.

__5. From the menu, select File > Exit to close Eclipse.

Eclipse JEE Galileo is working fine.

Part 8 - Verification of Apache Tomcat 6_0_26

__1. Open a command prompt window.

__2. Change to the following directory:

C:\Software\apache-tomcat-6.0.26\bin

__3. Run the command:

startup.bat

__4. Apache will start in a new window.

Copyright Web Age Solutions Inc. 17

WA1927 Introduction to Struts 2.x Using Eclipse - Classroom Setup Guide

__5. Open another command prompt window.

__6. Change to the following directory:

C:\Software\apache-tomcat-6.0.26\bin

__7. Run the command:

shutdown.bat

__8. Apache will stop and the window where it was running will close.

__9. Close All command prompts.

Congratulations. The entire installation for this course has been completed.

Copyright Web Age Solutions Inc. 18