2

I deleted few Tomcat installations from the Linux server (CentOS). There after i installed Tomcat 8. Now when i try to start Tomcat 8 (./startup.sh) it gives the following error:

Cannot find /opt/apache-tomcat-7.0.56/bin/setclasspath.sh
This file is needed to run this program

Seems like i have not removed the previous installation of tomcat properly. How can i get this to work. Help.

Update

[root@localhost bin]# ./startup.sh 
Using CATALINA_BASE:   /usr/local/tomcat7
Using CATALINA_HOME:   /usr/local/tomcat7
Using CATALINA_TMPDIR: /usr/local/tomcat7/temp
Using JRE_HOME:        /usr
Using CLASSPATH:       /usr/local/tomcat7/bin/bootstrap.jar:/usr/local/tomcat7/bin/tomcat-juli.jar
Tomcat started.
Illep
  • 16,375
  • 46
  • 171
  • 302

1 Answers1

4

Try to run this command

unset CATALINA_HOME

This command will unset the environmental variable CATALINA_HOME.

There is two ways to add this command to start up linux command as follows

First method

Second method

Now you will not have to run this command again and again on booting.

Community
  • 1
  • 1
Arnab Nandy
  • 6,472
  • 5
  • 44
  • 50