Ubuntu – Tomcat and Eclipse Integration Error: “Unknown version of Tomcat was specified.”

13.10eclipsejavatomcat7

I am using Ubuntu 13.10 and gnome 3.10.

I have followed this tutorial to set up tomcat and eclipse.:

Set up Eclipse and Tomcat 7 on Ubuntu 12.10 to create Java RESTful Web Services with Jersey

But when I reach step 9, I get the following error on eclipse:

Unknown version of Tomcat was specified

I tried many solutions I saw here on Ask Ubuntu but none worked for me.

I have checked the usr/local folder but tomcat7 is not there.

I checked the /usr/share folder and tomcat7 is there.

tomcat location

I used the following command to install eclipse and tomcat:

sudo apt-get install eclipse tomcat7 -y

Best Answer

I suggest installing standalone Tomcat into /usr/local instead of using the one in /usr/share directory.

cd ~/Downloads
wget http://apache-mirror.rbc.ru/pub/apache/tomcat/tomcat-7/v7.0.52/bin/apache-tomcat-7.0.52.tar.gz
tar -xzf apache-tomcat-7.0.52.tar.gz
sudo mv apache-tomcat7.0.52 /usr/local/apache-tomcat7.0.52

Then use /usr/local/apache-tomcat7.0.52.