Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add apache-tomcat 7 in Eclipse 4.4 (Luna)

I have just installed Eclipse 4.4 (Luna) on Ubuntu, but I couldn't set the Apache Tomcat 7 server in Target Runtime environment. This option is not shown there.

I also tried to add it by menu Window → *Preferences → Server → Run time environment. But it also does not work. In it, Download additional server adapter does also not show Apache tomcat server. While apache-tomcat Server properly starts on my System at port 8080.

like image 273
user3930824 Avatar asked Aug 11 '14 19:08

user3930824


People also ask

How can I add Tomcat server to Eclipse?

For configuring the tomcat server in eclipse IDE, click on servers tab at the bottom side of the IDE -> right click on blank area -> New -> Servers -> choose tomcat then its version -> next -> click on Browse button -> select the apache tomcat root folder previous to bin -> next -> addAll -> Finish.

Which version of Tomcat is compatible with Java 7?

Download Java Development Kit (JDK) versions 6 and 7 Building Apache Tomcat requires a Java 6 JDK to be installed and optionally a Java 7 JDK installed in parallel with Java 6 one. The Java 7 JDK is only required if you wish to build Tomcat with JSR-356 (Java WebSocket 1.1) support.

Is Tomcat included in Eclipse?

By default when you download Eclipse IDE, it doesn't come with Tomcat install with it.


2 Answers

  1. go to Help/Install new Software
  2. choose "All Available sites"
  3. and search for "server"
  4. You will see "Web, Xml, Java EE and OSGi Enterprise Development" Install this Software.

After a restart of Eclipse go to

Window/Preferences/Server/Runtime Enviroments and click "add"

Now you will see the options for Tomcat (in my case Version 3.2 up to 8.0)

like image 115
Gio Avatar answered Oct 14 '22 02:10

Gio


  1. Go to Help/Install new Software
  2. Choose "Luna - http://download.eclipse.org/releases/luna"
  3. Check "JST Server Adapters" and "JST Server Adapters Extensions"
  4. Once installed, go to "Window > Preferences > Server > Runtime Environments" and you'll find Apache Tomcat servers
like image 25
Mohammad Awwaad Avatar answered Oct 14 '22 00:10

Mohammad Awwaad