"The specified Tomcat installation directory does not exist" after reinstalling the system

I just reinstalled my windows7 system and now my project in eclipse cannot run on local Tomcat server.

I have an error trying to start the server.

The specified Tomcat installation directory does not exist.

      

enter image description here

How can I change tomcat directors to start. For some reason my E drive where install tomcat now becomes D drive. This is a mess in eclipse.

+3


source to share


4 answers


I think your workspace is still remembering paths relative to the disk E

, which is no longer working now because it has become D

.

You can just go to eclipse at

Window > Preferences > Server > Runtime Environment 

      

remove the broken server and add it again. Right click on your project before run on server

and select newly created.



However, since you have set the stuff to E

what it is now D

, you might run into other problems, so I would suggest re-mapping the drive to do this, go to:

Control Panel > System and Security > Administrative Tools > Computer Management

      

Then click Disk Management

under Storage

. Right click on the section that is now marked as D

and select Change Drive Letter and Path...

and apply the changes you want, then replace it with E

.

+6


source


Found a solution:



In the tab, Servers

double click on the tomcat server. In General Information

click Runtime Environment

then go to Tomcat installation directory clickFinish

+2


source


Try the following:
Go to Window -> Preferences -> Server -> Runtime

In the Server Runtime environment, select the server configuration that is giving the error and click Modify.

Install the appropriate Tomcat installation directory by clicking the Browse button and selecting the tomcat directory.
Finally, click Finish.

Then restart the server by running the project on the server.

+1


source


1. Install tomcat7 in ubuntu. Go to lib folder and create a new folder with the required name, for example Tomcat7 and give all rights to this folder.

  1. Go to eclipse, select your project and click Window-> prefrences-> serve-> runtime enviorments and click the add button and select tomcat then click next then the dialog will open and select the folder you created in lib folder , then click the download and install button .

  2. The download will take a few minutes and after a few minutes the project will be read to run with tomcat in eclipse.

0


source







All Articles