Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse - Target runtime Apache Tomcat v7.0 is not defined

Tags:

eclipse

tomcat

When I run the application and build it. It doesn't show any error but when I access my application the following error comes in the console.

Description Resource Path Location Type Target runtime Apache Tomcat v7.0 is not defined. MyProject Unknown Faceted Project Problem

Can someone help me with this.

like image 910
user2015827 Avatar asked Jun 08 '16 09:06

user2015827


People also ask

Why does Eclipse not show targeted runtime?

You need to go to Help>Eclipse Marketplace . Then type server in the search box it will display Eclipse JST Server Adapters (Apache Tomcat,...) . Select that one and install it . Then go back to Window>Preferences>Server>Runtime Environnement, click add choose Apache tomcat version then add the installation directory .

How can I download Tomcat in Eclipse?

Installing server runtimeStart the Eclipse WTP workbench. Open Window -> Preferences -> Server -> Installed Runtimes to create a Tomcat installed runtime. Click on Add... to open the New Server Runtime dialog, then select your runtime under Apache (Apache Tomcat v5. 0 in this example):


1 Answers

The targeted runtime version must be updated. Suppose you are using Tomcat Version 8.0 but in the targeted runtime it shows 7.0 selected.

You need to right click on your project > Properties > Targeted Runtime > Click the version required 8.0 I guess. Hope it helps.

like image 99
Vibhu Dadhichi Avatar answered Sep 17 '22 19:09

Vibhu Dadhichi