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

后端 未结 6 2053
小鲜肉
小鲜肉 2020-12-23 21:03

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 a

相关标签:
6条回答
  • 2020-12-23 21:15

    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 讨论(0)
  • 2020-12-23 21:16

    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"
    
    0 讨论(0)
  • 2020-12-23 21:25
    • 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
    0 讨论(0)
  • 2020-12-23 21:27
    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
    0 讨论(0)
  • 2020-12-23 21:29

    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.

    0 讨论(0)
  • 2020-12-23 21:36
    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)

    0 讨论(0)
提交回复
热议问题