Modify catalina in windows. sh upload to linux run error This file is needed to run this program solve 1. Found the problem due to tomcat memory overflow, modified catalina in windows. sh, then upload it to the linux server through ssh, and run catalina. sh: Cannot find. /catalina. sh This file is needed to run this program 2. Try to solve the problem by using sh catalina. sh command execution, the result does not set javahome, and then in catalina. sh: JAVA_HOME =/usr/lib/jvm/jdk1.5.0 _ 16; execute sh catalina again. sh, The error is as follows: The BASEDIRenvironmentvariable is not defined correctl Y This environmentvariable is needed to run this program 3. solution. sh files are not executable files, so find the command: chmod + x *. sh, this command means to make all. sh files can be executed. Execute sh catalina. sh again and start it with sh startup. sh.