java - 无法将服务器(tomcat)添加到 Eclipse

标签 java eclipse tomcat

环境:Windows + Eclipse Luna Service Release 2 (4.4.2) + Tomcat 8 + JDK 8

当我尝试使用 File -> New -> Other -> Server 将新服务器添加到 Eclipse 时

我在“新建服务器”对话框中选择“Tomcat v8.0 服务器”,并添加了“服务器运行时环境”。但是有错误提示

" The currently selected server type does not support remote hosts".

我该如何处理这个错误?

谢谢大家!

最佳答案

我通过在 eclipse 中更改服务器运行时环境来解决,
首选项 => 服务器 => 运行时环境

enter image description here

然后选择您的 tomcat 类型。您可以删除服务器并添加新的服务器运行时环境或通过提供正确的 tomcat 安装路径来编辑现有服务器。然后就不给了

"The currently selected server type does not support remote hosts" error.

enter image description here

关于java - 无法将服务器(tomcat)添加到 Eclipse,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30568931/

相关文章:

java - 如何查找路径是否已用作符号链接(symbolic link)的源

Java regEx URL 匹配问题

java - Atmosphere 样本 : Can't get chat demo working (atmosphere. js 给出 404)

eclipse:将键盘快捷键放在特定的启动配置上

tomcat - 哪个 AS 更适合 EJB-2 应用程序,客户端代码将驻留在 tomcat6 中

java - Glassfish 中的 ThreadLocal 内存泄漏

java - Java 应用程序访问 Windows 进程并发送命令的最佳方法

c# - 传递字符串参数jni

Android:在 Eclipse 布局查看器中显示自定义 UI View

java - 将 Web 应用程序升级到 Spring Boot 2.4 后的 IllegalStateException