31

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.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Rubi
  • 396
  • 1
  • 5
  • 13

6 Answers6

43
  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)

Gio
  • 631
  • 6
  • 11
23
  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
Mohammad Awwaad
  • 431
  • 3
  • 12
9

Have you installed the **Eclipse IDE for Java EE Developer Luna?** Have you installed or unzip the Tomcat 7 to your local folder? If all answer is yes, you need to add it in Server Environment to your Eclipse:

Step1:
    Click Window menu - Preferences - Server - Runtime Environments 
Step 2:
    Click Add - expand Apache - Select Apache Tomcat 7
Step 3:
    Browse the Tomcat Installation folder or you can just click   
    the Download and Install
Step 4:
    Click Finished

Next is add the Server to Server View

Step 1:
    Click Window menu - View - Servers
Step 2:
    If you see "No servers available" Click the link to create a new instance
Step 3:
    Select "Tomcat v7.0 Server" from Server Type
Step 4:
    Select "Apache Tomcat v7.0" from the drop down "Server runtime environment"
archetype
  • 134
  • 2
  • I tried it but after following first step i.e window-Preferences-Server-Runtime Environments and tried to add tomcat ..there is no option available for Tomcat..it shows other server names except tomcat.. – Rubi Aug 12 '14 at 15:24
  • follow those steps: Help->Install new software-> http://download.eclipse.org/releases/luna In the search box type server then install: JST Server Adapters, JST Server Adapters Extensions, JST Server UI, WST Server Adapters That's All. Hope that helps Salam :) – BilalDja Sep 20 '14 at 12:21
9
  • Open Eclipse Luna
  • Choose eclipse Help > Eclipse Marketplace

enter image description here

  • Install Eclipse JST Server Adapters

JST Server Adapter

JST Server Adapter Extensions

  • Choose Window > Preferences > Server > Runtime Environment

enter image description here

  • Click on Add button and select Apache Tomcat v7.0

enter image description here

  • Choose the Tomcat server directory and click Finish
Community
  • 1
  • 1
Prashanth Sams
  • 19,677
  • 20
  • 102
  • 125
0

Create a runtime environment for Tomcat 7, but when you asked for tomcat_home or catalina_home use the path you want. I should run fine. I've made myself on MyEclipse and Tomcat 8. This is very fun because Tomcat 8 is unknown to the MyEclipse is too old. Your Luna is too young and should have a server runtime environment for Tomcat 8. Sure you can use a pro version of eclipse to make it working.

0

One of the Compatible Tomcat version for eclipse Luna is Eclipse Tomcat Plugin 9.0.1. You can download it from sourceforge.net

Download and extract the zipped folder into ..\eclipse\dropins\ folder and restart the eclipse.

deHaar
  • 17,687
  • 10
  • 38
  • 51