Java Tomcat 的未知版本被指定为 8.0.24 / Eclipse 4.4.2 (Luna)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/35306335/
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
Unknown version of Tomcat was specified 8.0.24 / Eclipse 4.4.2 (Luna)
提问by Maximus Decimus
A couple of months ago, I downloaded and unzipped the tomcat 8.0.24 which is running flawlessly. I did some tests creating servlets in notepad, compiled with javac.exe and placed in webapps. It worked.
几个月前,我下载并解压了运行完美的 tomcat 8.0.24。我做了一些测试,在记事本中创建 servlet,用 javac.exe 编译并放置在 webapps 中。有效。
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
采纳答案by Dfirmansyah
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 bindirectory)
因此,在您的情况下,只需填写D:\ApacheTomcat\apache-tomcat-8.0.24(不带bin目录)
回答by maxweber
In Ubuntu, point to the shared location; not the app location. Point to: /usr/share/tomcat8 and fix what they did not test:
在Ubuntu中,指向共享位置;不是应用程序位置。指向:/usr/share/tomcat8 并修复他们未测试的内容:
cd /var/lib/tomcat8
ln -s conf /usr/share/tomcat8/conf
回答by Balaji Perumal
In Fedora, Just select this directory
在 Fedora 中,只需选择此目录
/usr/share/tomcat
/usr/share/tomcat
回答by David
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 和氧气日食。
回答by Akshay Vijay Jain
Use Tomcat version 7
The problem is the variable JAVA_HOME, everything works for TOMCAT version 7but not for version 8 and 9 which always returns me "Unknown version of Tomcat was specified"
使用 Tomcat 版本 7
问题是变量 JAVA_HOME,一切都适用于TOMCAT 版本 7,但不适用于版本 8 和 9,它总是返回“指定了未知版本的 Tomcat”
回答by Yash Jain
This required path is where you untarred the file when downloaded. Generally, the path in Ubuntu systems is:
此必需路径是您在下载时解压缩文件的位置。一般在Ubuntu系统中的路径是:
/usr/share/tomcat7