简体   繁体   English

Tomcat 的未知版本被指定为 8.0.24 / Eclipse 4.4.2 (Luna)

[英]Unknown version of Tomcat was specified 8.0.24 / Eclipse 4.4.2 (Luna)

A couple of months ago, I downloaded and unzipped the tomcat 8.0.24 which is running flawlessly.几个月前,我下载并解压了运行完美的 tomcat 8.0.24。 I did some tests creating servlets in notepad, compiled with javac.exe and placed in webapps.我做了一些测试,在记事本中创建 servlet,用 javac.exe 编译并放置在 webapps 中。 It worked.有效。

My version of Eclipse is 4.4.2 known as Luna.我的 Eclipse 版本是 4.4.2,称为 Luna。

My version of JRE is 1.8.0_65 (x64)我的 JRE 版本是 1.8.0_65 (x64)

When I want to set my Server in Eclipse, I see this warning and I don't know what to do.当我想在 Eclipse 中设置我的服务器时,我看到了这个警告,我不知道该怎么做。

Eclipse > Windows > Preferences > Server > Runtime Environments > Add Eclipse > Windows > 首选项 > 服务器 > 运行时环境 > 添加 在此处输入图片说明

在此处输入图片说明

在此处输入图片说明

Tomcat Installation directory field is meant to be pointed at your Tomcat base directory. Tomcat 安装目录字段旨在指向您的 Tomcat 基目录。

So in your case just fill it with D:\\ApacheTomcat\\apache-tomcat-8.0.24 (without bin directory)因此,在您的情况下,只需填写D:\\ApacheTomcat\\apache-tomcat-8.0.24 (不带bin目录)

In Ubuntu, point to the shared location;在Ubuntu中,指向共享位置; not the app location.不是应用程序位置。 Point to: /usr/share/tomcat8 and fix what they did not test:指向:/usr/share/tomcat8 并修复他们未测试的内容:

 cd /var/lib/tomcat8
 ln -s conf /usr/share/tomcat8/conf

In Fedora, Just select this directory在 Fedora 中,只需选择此目录

/usr/share/tomcat /usr/share/tomcat

This required path is where you untarred the file when downloaded.此必需路径是您在下载时解压缩文件的位置。 Generally, the path in Ubuntu systems is:一般在Ubuntu系统中的路径是:

/usr/share/tomcat7

I tried different locations, assign all permissions, but none of them works.我尝试了不同的位置,分配了所有权限,但没有一个有效。 so I moved tomcat folder to desktop and it works for me... mine is tomcat 8.5 and oxygen eclipse.所以我将 tomcat 文件夹移到桌面上,它对我有用……我的是 tomcat 8.5 和氧气日食。

Use Tomcat version 7使用 Tomcat 版本 7
The problem is the variable JAVA_HOME, everything works for TOMCAT version 7 but not for version 8 and 9 which always returns me "Unknown version of Tomcat was specified"问题是变量 JAVA_HOME,一切都适用于TOMCAT 版本 7,但不适用于版本 8 和 9,它总是返回“指定了未知版本的 Tomcat”

Check the permissions on the tomcat installation folder. 检查tomcat安装文件夹上的权限。 Ensure that eclipse has access to it 确保Eclipse可以访问它

在安装时选择与 tomcat 相同的 jdk

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM