I am trying to install a second instance (a different version) of
Tomcat on the same server. When I run ./startup.sh, I get
The BASEDIR environment variable is not defined
This environment variable is needed to run this program
I have tried setting BASEDIR in my setenv.sh. I have tried setting CATALINA_HOME, CATALINA_BASE. I have tried using EXPORT, I have tried assigning it directly. echos within the setenv.sh show that the variables are getting set. echos from the terminal, however, show that they are not. (I do not know if that part is expected.)
Here is my current setenv.sh which shows some of the things I've tried. But I'm starting to think the problem is not my code in the setenv.sh.