---
title: "this file is needed to run this program"
author: "caohaigang2008"
date: "2011-12-20T09:01:33Z"
tags: []
categories: ["编程语言"]
slug: "this-file-is-needed-to-run-this-program"
draft: false
lastmod: "2011-12-20T09:01:33Z"
id: 1317300
url: "https://caohaigang2008.iteye.com/blog/1317300"
---

## this file is needed to run this program

 (2010-11-21 18:54:50)

[![](http://simg.sinajs.cn/blog7style/images/common/sg_trans.gif)转载*▼*](http://blog.sina.com.cn/s/blog_55fb522f0100mi65.html)

标签： 

### [catalina](http://uni.sina.com.cn/c.php?t=blog&k=catalina&ts=bpost&stype=tag)

 

### [chmod](http://uni.sina.com.cn/c.php?t=blog&k=chmod&ts=bpost&stype=tag)

 

### [tomcat](http://uni.sina.com.cn/c.php?t=blog&k=tomcat&ts=bpost&stype=tag)

 

### [solaris](http://uni.sina.com.cn/c.php?t=blog&k=solaris&ts=bpost&stype=tag)

分类： [编程生活](http://blog.sina.com.cn/s/articlelist_1442533935_2_1.html)

 

 今天在solaris上部署tomcat 6.0.20,使用sh startup.sh启动tomcat，出现  
This file is needed to run this program

经过无数百度后，才发现那些.sh文件都不是可执行文件，于是找到命令：

**chmod +x \*.sh**    
chmod +x \*.sh再次执行 sh catalina.sh通过，然后用sh startup.sh成功启动

 

或者制定目录设置 也ok.