Eclipse
Apache Tomcat
Server Runtime Environments
Eclipse Server Configuration
Troubleshooting

Apache Tomcat not showing in Eclipse Server Runtime Environments

Codemia Knowledge Hub ·

Apache Tomcat usually goes missing from Eclipse's Server Runtime Environments because the Web Tools Platform (WTP) server adapters are not installed, the Tomcat installation path is wrong, or your Eclipse version does not support your Tomcat version. Less often, environment variables or a corrupted workspace are to blame.

Missing server adapters (WTP not installed)

Eclipse needs the right server adapters to work with Tomcat. Open:

 
     Window -> Preferences -> Server -> Runtime Environments

Click "Add" and check whether "Apache Tomcat" is listed. If not, Eclipse needs the Web Tools Platform (WTP) plugins. Install them through:

 
     Help -> Install New Software

Search for WTP and make sure it is installed.

Wrong Tomcat installation path

Eclipse cannot use Tomcat if the path is incorrect or invalid. Verify the path to your Tomcat installation and make sure its files and folders have the correct permissions. Set the path through:

 
     Window -> Preferences -> Server -> Runtime Environments -> Add

Choose the matching Tomcat version and give the correct installation directory.

Unsupported Tomcat version

Eclipse may not support a newer or older Tomcat version. Check the Eclipse documentation for compatibility, and if your versions do not match, upgrade or downgrade Tomcat or Eclipse.

Environment variables not set

Missing or incorrect environment variables can break the integration. Make sure CATALINA_HOME and JAVA_HOME point to your Tomcat and Java installations. Check them from the command line:

 
     echo $CATALINA_HOME
     echo $JAVA_HOME

Corrupted workspace

Internal configuration in the Eclipse workspace sometimes gets corrupted. Start a new workspace and set up the server there:

 
     File -> Switch Workspace -> Other...

Create the new workspace and see whether Apache Tomcat can be added now.

Example: adding Tomcat 9 to Eclipse IDE for Enterprise Java Developers

With Tomcat 9 installed and Eclipse IDE for Enterprise Java Developers:

  1. Install Web Tools Platform: Go to Help -> Eclipse Marketplace, search, and make sure Eclipse WTP is installed.
  2. Add Tomcat in Eclipse:
    • Navigate to Window -> Preferences -> Server -> Runtime Environments.
    • Click "Add" and select the correct Apache Tomcat version.
    • Point to the Apache Tomcat installation directory.
  3. Verify the setup:
    • Make sure Tomcat is not running while you configure it in Eclipse.
    • Check that JAVA_HOME matches the JDK version Tomcat requires.

Troubleshooting table

ProblemPossible CauseSolution
Apache Tomcat missing in IDEMissing WTP PluginsInstall WTP via Eclipse Marketplace
Incorrect server pathWrong or restricted path to Tomcat installationCorrect the path in Preferences Ensure permissions are set
Incompatible versionsEclipse does not support the Tomcat versionUpdate/downgrade Eclipse or Tomcat
Environment variablesJAVAHOMEJAVA_HOME or CATALINAHOMECATALINA_HOME not setSet variables in System Properties
Corrupted workspaceInternal workspace configurations corruptedCreate a new workspace and retry

Free course
Beginner
7 lessons
2 hours
Tackling System Design Interview Problems

A short course that equips you with the skills to approach system design interviews methodically.

Start the free course
Basis Lab
No course covers this one yet

Basis Lab writes one for you from a sentence about what you want to be able to do, then teaches it and checks you understood. Your first course is free.

Build my course
Interview Questions practice on Codemia

Over 11,000 interview practice questions for 300+ companies, searchable by company and role.

Browse interview questions