Eclipse 中没有服务器;尝试安装Tomcat
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13039449/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
No server in Eclipse; trying to install Tomcat
提问by CodyBugstein
I'm trying to install Tomcat in Eclipse but I can't get a server tab to show up. When I go to Window -> Show View -> Otherand type in "server", I don't get any results.
我正在尝试在 Eclipse 中安装 Tomcat,但无法显示服务器选项卡。当我转到窗口 -> 显示视图 -> 其他并输入“服务器”时,我没有得到任何结果。
When I go to File -> New -> Otherand type 'server' I also get nothing.
当我转到文件 -> 新建 -> 其他并输入“服务器”时,我也一无所获。
Does anyone know what happened to my servers and where I can find them? (I've never used Eclipse with servers before).
有谁知道我的服务器发生了什么以及我在哪里可以找到它们?(我以前从未将 Eclipse 与服务器一起使用)。
回答by Tomasz Bartnik
Try to install JST Server Adapters
and JST Server Adapters Extentions
. I am running Eclipse 4.4.2 Luna and it worked.
尝试安装JST Server Adapters
和JST Server Adapters Extentions
. 我正在运行 Eclipse 4.4.2 Luna 并且它工作正常。
Here are the steps I followed:
以下是我遵循的步骤:
Help -> Install New Software
Choose "Luna - http://download.eclipse.org/releases/luna" site
Expand "Web, XML, and Java EE Development"
Check JST Server Adapters and JST Server Adapters Extentions
帮助 -> 安装新软件
选择“Luna - http://download.eclipse.org/releases/luna”站点
展开“Web、XML 和 Java EE 开发”
检查 JST 服务器适配器和 JST 服务器适配器扩展
回答by Enissay
For future poeple who have the same problem: Try to add server tab from eclipse menu, if it doesnt work, then go do @Tomasz Bartnik solution above, and retry the following again:
对于未来遇到同样问题的人:尝试从 eclipse 菜单中添加服务器选项卡,如果它不起作用,那么请执行上面的 @Tomasz Bartnik 解决方案,然后再次重试以下操作:
It will then be added to your tabs
然后它将被添加到您的标签中
回答by Ram Anand Vutukuru
The reason you might not be getting any results is because you might not be having the J2EE environment setup in your Eclipse IDE. Follow these steps to solve the problem.
您可能没有得到任何结果的原因是因为您可能没有在 Eclipse IDE 中设置 J2EE 环境。请按照以下步骤解决问题。
- Goto Help -> Install new Software
- Select {Oxygen - http://download.eclipse.org/releases/oxygen} (or Similar option/version) in the "Work with" tab.
- Search for Web,XML,Java EE and OSGi Enterprise Development
- Check the boxes corresponding to,
- Eclipse Java EE Developer Tools
- JST Server Adapters
- JST Server Adapters Extensions
- Click next and accept the license agreement.
- 转到帮助 -> 安装新软件
- 在“使用”选项卡中选择 {Oxygen - http://download.eclipse.org/releases/oxygen}(或类似选项/版本)。
- 搜索 Web、XML、Java EE 和 OSGi 企业开发
- 选中对应的框,
- Eclipse Java EE 开发人员工具
- JST 服务器适配器
- JST 服务器适配器扩展
- 单击下一步并接受许可协议。
Hope this helps.
希望这可以帮助。
回答by CodyBugstein
I ended up installing a new copy of Eclipse - JAVA EE, and it all works now.
我最终安装了 Eclipse 的新副本 - JAVA EE,现在一切正常。
回答by nitind
The Web Tools Platformprovides the Java EE development tools, and is included in the IDE for Java EE Developers. Among other things, it provides the Servers view and makes it easy to launch a Tomcat server from there. You can either download the IDE for Java EE Developers, or go to the Help menu and Install New Software, looking for the Java EE features.
在Web工具平台提供了Java EE开发工具,并包含在IDE的Java EE开发。除其他外,它提供了 Servers 视图并使从那里启动 Tomcat 服务器变得容易。您可以下载适用于 Java EE 开发人员的 IDE,也可以转到“帮助”菜单并安装新软件,查找 Java EE 功能。
回答by adrian filipescu
In {workspace-directory}/.metadata/.plugins/org.eclipse.core.runtime/.settings delete the following two files:
- org.eclipse.wst.server.core.prefs
- org.eclipse.jst.server.tomcat.core.prefs
Restart Eclipse
在 {workspace-directory}/.metadata/.plugins/org.eclipse.core.runtime/.settings 中删除以下两个文件:
- org.eclipse.wst.server.core.prefs
- org.eclipse.jst.server.tomcat.core.prefs
重启 Eclipse
回答by DON
回答by S.Rumeshi
Eclipse IDE for Java Developers 'Servers' doesn't exist. Therefore download correct Eclipse IDE. It is Eclipse IDE for Enterprise Java Developers(Eclipse IDE for Java EE Developers). This way is easy.
面向 Java 开发人员“服务器”的 Eclipse IDE 不存在。因此下载正确的 Eclipse IDE。它是面向企业 Java 开发人员的 Eclipse IDE(面向 Java EE 开发人员的 Eclipse IDE)。这种方式很容易。
回答by biddut
Steps to follow:
要遵循的步骤:
1.Goto Help -> Install new Software
2.Give address http://download.eclipse.org/releases/oxygen and name as your choice.
3.Search for Java EE and choose 1.Eclipse Java EE Developer Tools
4.Search for JST and choose 2.JST Server Adapters 3.JST Server Adapters
5.Click next and accept the license agreement.
Find the server option in the window-->preferences and add server as you need
在窗口中找到服务器选项-->首选项并根据需要添加服务器
回答by Bibin Baby
Download the tomcat latest zip from https://tomcat.apache.org/download-90.cgiRename the folder with simple name like 'tomcat'. Save the folder and copy the path.
从https://tomcat.apache.org/download-90.cgi下载 tomcat 最新 zip 使用简单的名称重命名文件夹,如“tomcat”。保存文件夹并复制路径。
Goto Help -> Install new Software Select {Oxygen - http://download.eclipse.org/releases/oxygen} in the "Work with" tab. Select the last option Web,XML,Java EE and OSGi Enterprise Development Check the boxes corresponding to 1.Eclipse Java EE Developer Tools 2.JST Server Adapters 3.JST Server Adapters Extensions Click next and accept the license agreement.
转到帮助 -> 安装新软件在“使用”选项卡中选择 {Oxygen - http://download.eclipse.org/releases/oxygen}。选择最后一个选项 Web、XML、Java EE 和 OSGi Enterprise Development 选中对应的框 1.Eclipse Java EE Developer Tools 2.JST Server Adapters 3.JST Server Adapters Extensions 单击下一步并接受许可协议。