Sysdeo Plugin and Tomcat Configuration
Download and install Tomcat before installing the Sysdeo plugin. After downloading the Sysdeo plugin from the link above, extract it to C:\Program Files\eclipse\plugins\. As before, if you extract it to the wrong directory simply move it to the correct one. The end result should be similar to C:\Program Files\eclipse\plugins\com.sysdeo.eclipse.tomcat_3.2.0. The Sysdeo plugin is a directory containing jar files, html, and property files.
Stop and relaunch Eclipse if it's running so it will pick up the new plug-in. Activate the plugin in the following location in Eclipse: Window --> Customize Perspective --> Commands and select the checkbox for Tomcat. It may be necessary to force Eclipse to see the new plug-in. Right-click on the Eclipse icon (either in Start --> Programs or on your desktop) and select Properties in the drop-down list. Select the Shortcut tab and add “-clean” in the Target box to make Eclipse check for new plug-ins. The result should be similar to “C:\Program Files\eclipse\eclipse.exe” -clean.
Set the Tomcat preferences in Window --> Preferences --> Tomcat. Highlight Tomcat in the list and select the correct version of Tomcat and browse to C:\Program Files\apache-tomcat-5.5.17. See the screen capture on the right.
On the same screen, select the Context Declaration Mode --> Context Files and enter C:\Program Files\apache-tomcat-5.5.17\conf\Catalina\localhost or the location you originally installed Tomcat.
In the Advanced section under Tomcat browse to C:\Program Files\apache-tomcat-5.5.17 for the entry pointing to the Tomcat base.
Next, in the JVM Settings window, at the top of the screen select the JRE you added previously (actually a JDK). The possible choices will be included in the dropdown. Leaving it as the default eclipse JRE will prevent the Tomcat connector from working properly. Add a reference to the C:\Program Files\Java\jdk1.6.0_06\lib\tools.jar in the Classpath window in the middle of the screen as the jpg at the left illustrates. Add C:\Program Files\Java\jdk1.6.0_06\jre\lib\rt.jar in the Boot Classpath window at the bottom of the page.
The plugin has created three new buttons on your Eclipse toolbar (see the small image below). Click on the first icon and watch Tomcat start up in the console (the plugin redirects Tomcat messages to the Eclipse console). Now when you start a project in Eclipse select “Tomcat Project” under Java in the New Project window. Your workstation is set up to run Tomcat while working in Eclipse. You should see your index page in a browser set to http://localhost/<context>.