Configuring Tomcat with Eclipse


Tomcat 7 with Eclipse
Recommended for Most Developers
Tomcat 6 with Eclipse
If Servlet 2.5/2.4 Compatibility Needed
Manual Tomcat Execution
Not recommended
  1. Install Java. Make sure you have Java 6 installed.
  2. Unzip Tomcat.Unzip tomcat-7.0.8-preconfigured.zip.
  3. Download Eclipse 3.6 (Helios).Install the Java EE version of Eclipse 3.6. If you have JDK 1.6.0_21, you must fix the Eclipse permgen space error.
  4. Tell Eclipse about Tomcat. Start Eclipse and go to the Workbench. Click on Servers tab at bottom. R-click, New, Server, Apache, Tomcat v7.0, navigate to Tomcat installation folder (e.g.,C:\apache-tomcat-7.0.8), OK.
  5. Test the server.Test Tomcat within Eclipse. 
  6. Adjust Eclipse preferences.Suppress unnecessary warnings about serialized classes. Window, Preferences, Java, Compiler, Errors/Warnings, change "Serializable class without ..." to "Ignore". Many other personal preferences re font size, indentation style, etc.
  1. Install Java. Make sure you have Java 5 or 6 installed.
  2. Unzip Tomcat.Unzip tomcat-6.0.28-preconfigured.zip.
  3. Download Eclipse.Install the Java EE version of Eclipse. If you have JDK 1.6.0_21, you mustfix the Eclipse permgen space error.
  4. Tell Eclipse about Tomcat. Start Eclipse and go to the Workbench. Click on Servers tab at bottom. R-click, New, Server, Apache, Tomcat v6.0, navigate to Tomcat installation folder (e.g.,C:\apache-tomcat-6.0.28), OK.
  5. Test the server.Test Tomcat within Eclipse. 
  6. Adjust Eclipse preferences.Suppress unnecessary warnings about serialized classes. Window, Preferences, Java, Compiler, Errors/Warnings, change "Serializable class without ..." to "Ignore". Many other personal preferences re font size, indentation style, etc.
  1. Install Java. Make sure you have Java 5 or 6 installed. Detailshere.
  2. Unzip Tomcat. Unziptomcat-6.0.28-preconfigured.zip into the top level of the C drive. Details here.
  3. Set JAVA_HOME. Set this environment variable to point at the top-level of your Java installation directory (e.g., C:\Program Files\Java\jdk1.6.0_21). Use the Control Panel or see this sample autoexec.bat file. Details here.
  4. Set CLASSPATH. Set this environment variable to include ".",C:\Servlets+JSP, and the servlet/JSP JAR files. Use the Control Panel or see this sample autoexec.bat file. 
  5. Test the server. Make sure you can start/stop the server. Test some sample HTML files, JSP pages, and servlets. 


Enter your email address to get our daily JOBS & INTERVIEW FAQ's Straight to your Inbox.

Make sure to activate your subscription by clicking on the activation link sent to your email