在 ubuntu 中使用 Eclipse 配置 Tomcat 6 [英] Configuring Tomcat 6 with eclipse in ubuntu
问题描述
Eclipse 不允许我在配置 Tomcat 6 时创建 Web 应用程序.它要求设置 Tomcat 安装文件夹,如果我设置了/usr/share/tomcat6",那么它显示Tomcat 安装目录无效.缺少预期的文件或文件夹 conf.",如果我设置了/var/lib/tomcat6",则显示Tomcat 安装目录无效.缺少预期的文件或文件夹 lib/jasper-el.jar."
Eclipse doesn't allow me to create web application while configuring Tomcat 6. It asked to set the Tomcat installation folder, if i set "/usr/share/tomcat6" then it shows "The Tomcat installation directory is not valid. It is missing expected file or folder conf.", if i set "/var/lib/tomcat6" then it shows "The Tomcat installation directory is not valid. It is missing expected file or folder lib/jasper-el.jar."
如何在ubuntu中使用Tomcat6配置Eclipse
How to configure Eclipse with Tomcat6 in ubuntu
推荐答案
我在 Ubuntu Linux 上遇到了同样的问题.打开终端窗口并输入:
I experienced this same problem on Ubuntu Linux. Open a terminal window and type this in:
cd /usr/share/tomcat6
sudo ln -s /var/lib/tomcat6/conf conf
在 Eclipse 配置窗口中,它应该立即识别出这是一个可行的目录.我不完全确定为什么 Tomcat 安装会拆分 bin 和 conf 目录,但显然 Eclipse 认为它们应该彼此相邻.
In the Eclipse configuration window it should immediately recognize this as a viable directory. I'm not exactly sure why the Tomcat installation splits the bin and conf directories but apparently Eclipse thinks they're supposed to be next to each other.
这篇关于在 ubuntu 中使用 Eclipse 配置 Tomcat 6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!