Step 2 Installation Java Technologies
First, unzip the eclipse-java-ganymede-win32 folder in a directory you will want to store Eclipse. To unzip the folder, select the right mouse button->select unzip or "extract all" ->select the appropriate directory.
Extract the file tomcatPluginV321 to the eclipse/plugin directory.
Extract the apache-tomcat-5.5.26 where you would like to store your Tomcat.
You will need to set some environmental variables. One is called JAVA_HOME and the other one is called CATALINA_HOME.
Select your “my Computer” with your right mouse button and select properties->select the advanced tab->select the environmental variable tab. Under your "user variable", select the new button, and type the variable name to be JAVA_HOME. For the value you should put the path to the location of your Java. (ex. C:\Program Files\jdk1.5.0_02) You should also add the Java bin directory to your class path. Select on the path variable (you should already have one but if not, then press new to create one (the value would be path)) and select the edit button. Paste the path to your Java bin directory. You should seperate each path location by a semicolon. (ex: C:\Program Files\jdk1.5.0_02\bin)
The bin directory is the folder that contains the javac file. The javac is the Java compiler to compile your code.
You need to do the same thing for Tomcat. Add a variable called CATALINA_HOME that points to where your Tomcat is located. (ex: C:\Tomcat)
Extract the mysql-5.1.26-rc-win32 file. You will see a setup icon that you can select to install mysql. When installing mysql, you probably only need to select the Typical install. You should select Detailed Configuration, and select Developer machine. Select the "transactional database" only radio button. You can select Decision Support and then select Install as a window service. Input a new root password for your mysql account. I will use admin as my password.
If you want to install Tomcat as a service too, you can do that by opening a command prompt and traversing to the bin directory. You should type service.bat install to install tomcat as a service. That command will install Tomcat as a service. If you want to remove the service, go to the same directory and type: service.bat remove to uninstall it. You can also type sc NAMEOFSERVICE to uninstall a service. This is not required for this tutorial however. You probably only need to install Tomcat as a service on a production machine.
If you are trying to install Tomcat as a service and you are running into issues. You should read my post on possible tomcat issues installing it as a service.
Tomcat Service Issues
The other files you downloaded will be used later when I show you how to attach your jar files to your project in eclipse.
You will need to make sure that your Eclipse is pointing to your Tomcat installation and to your Java installation. You can verify this by going to windows->preferences and selecting Tomcat and Java in Eclipse. You should make sure they are pointing to your Catalina_Home and Java_Home and that they are using the correct versions for each. For your Java, you should make sure it has the correct installed JREs by selecting Java and installed JREs. If these are pointing to the wrong place or using the wrong versions, you might receive an error later. The Installed JREs should have the location to your JAVA_HOME: C:\Program Files\Java\jdk1.5.0_07. The Name will be jdk1.5.0_07 which is the version you are using.
Your installations are completed
Go To Step 3
