Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I just reinstall my windows7 system, and now my project in eclipse can not run on the local Tomcat Server.

I have the error when I try to start the server.

The specified Tomcat installation directory does not exist.

enter image description here

How can I change the director of tomcat to run. For some reason, my disk E where install tomcat now becomes disk D. This mess up in eclipse.

like image 402
JaskeyLam Avatar asked Dec 15 '22 18:12

JaskeyLam


2 Answers

I guess your workspace still remembers paths relative the drive E that no longer work now because it has become D.

You could just go in eclipse into

Window > Preferences > Server > Runtime Environment 

remove the broken server and re-add it. Right click on your project to run on server and choose the newly created one.

However, since you have installed stuff on E which now is D you might run into other problems, therefore I would suggest relabeling the drive, to do so please go to:

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

Then click on Disk Management under Storage. Right click on the partition now labeled D and choose Change Drive Letter and Path... and apply the changes you need, i.e relabel it with E.

like image 127
A4L Avatar answered Dec 17 '22 07:12

A4L


Found solution:

In the Servers tab double click on the tomcat server. In the General Information click on Runtime Environment then browse to the Tomcat installation directory, click Finish

like image 23
JaskeyLam Avatar answered Dec 17 '22 09:12

JaskeyLam