今天在linux上部署tomcat 6.0.20,使用sh startup.sh启动tomcat,出现
Cannot find ./catalina.sh
This file is needed to run this program
Cannot find ./catalina.sh
This file is needed to run this program
然后又使用sh catalina.sh命令执行,结果
没有设置javahome,然后在catalina.sh里面添加:
JAVA_HOME=/usr/lib/jvm/jdk1.5.0_16;
JAVA_HOME=/usr/lib/jvm/jdk1.5.0_16;
再次执行sh catalina.sh,错误如下:
The BASEDIRenvironmentvariable is not defined correctly
This environmentvariable is needed to run this program
The BASEDIRenvironmentvariable is not defined correctly
This environmentvariable is needed to run this program
经过无数百度后,才发现那些.sh文件都不是可执行文件,于是找到命令:
chmod +x *.sh
chmod +x *.sh再次执行 sh catalina.sh通过,然后用sh startup.sh成功启动
来自iteye
分享到:
相关推荐
启动Tomcat时,如果出现 "This file is needed to run this program" 的错误,这通常是因为系统找不到Java运行环境。你需要设置 `JAVA_HOME` 环境变量,指向你的JDK安装路径,例如 `JAVA_HOME=/usr/java/jdk1.6.0_25...
This is the main header file for the DLL. It declares the CJpgVSbmpApp class. JpgVSbmp.cpp This is the main DLL source file. It contains the class CJpgVSbmpApp. JpgVSbmp.rc This is a listing of...
A stack is an area of memory in which program procedure or function call addresses and parameters are temporarily stored. In Process To run in the same address space. In-process servers are loaded ...
start your Visual Basic program with your project code showing, right click and you should see "Rem Builder".<END><br>3 , syntax.zip This is an excellent example of how to highlight ...
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS...
You should read the rest of this README file to get further information about this release before you do the installation. 3. IMPORTANT NOTES ------------------- o The file HELPME!.DOC contains...
This is the main DLL source file that contains the definition of DllMain(). CJ60Lib.rc This is a listing of all of the Microsoft Windows resources that the program uses. It includes the icons, ...
GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 ... 51 Franklin Street, ...Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; ...
Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative...
If you use Delphi 6, 7, or BCB 6, you don't have to worry about any of this as the normal TSTream is used by VCLZip and handles large file/stream sizes. ============ Version 2.23 (VCLZip Lite) ...
fsize.zip This demonstrates how to retrieve the file size from a specified file.<END><br>11 , cleardocs.zip This will clear the documents on the Start Menu.<END><br>12 , syscolor.zip This is ...
To install tModLoader, extract the zip achive containing this README.txt file to a temporary folder and then simply run the tModLoaderInstaller.jar file in that folder. Java 1.8 or higher is required ...
cube.zip This example demonstrates how to rotate a cube in visual basic.<END><br>17 , sprite1.zip This is an Excellent example on how to use sprites in your program.<END><br>18 , charcreate.zip...
This project model is not meant to be a tool to justify creating impositions for developers, but as a tool to facilitate coordination. It is meant as a description of the project, with an overview of...
link ▶You may use file names with a -inl.h suffix to define complex inline functions when needed. The definition of an inline function needs to be in a header file, so that the compiler has the ...
This is part of the Qt distribution and is used to generate translations. Qt-Assistant This is part of the Qt distribution and may be used to display help files. Mercurial This is a ...
This software is provided "as is", without any guarantee made as to its suitability or fitness for any particular use. It may contain bugs, so use of this tool is at your own risk. We take no ...
The base station is typically connected to the wired Internet and thus serves to connect wireless users to the wired network. 3G and 4G wide-area wireless access networks. In these systems, packets...
g) The VsGui program was modified to add sweep function, and the associated files were added to the file manifest. The new functions are assigned higher ordinal numbers than the earlier commands, so ...
protocol was a powerful but raw technology that needed to be exploited. We wanted it to run on as many platforms as possible, so an NFS porting group was assigned the task of helping other companies ...