---
title: "Could not find the main class .Program will exit.解决方法"
author: "tcl1122"
date: "2011-02-15T09:42:09Z"
tags: []
categories: ["编程语言"]
slug: "could-not-find-the-main-class-program-will-exit"
draft: false
lastmod: "2011-02-16T16:41:08Z"
id: 906410
url: "https://tcl1122.iteye.com/blog/906410"
---

这些天用绿色版的tomcat7.0 在1.6的jdk运行环境下的运行程序，自身启动没问题，但是后面让myeclipse去启动就出现问题了，
突然给我报了一个Could not find the main class .Program will exit.的错。我真是郁闷。

在网上查之后都是说什么高版本的不能去编译低版本的。
最后在国外网站上找到了东西，
在这个myeclipse 的tomcat配置中的classpath 中添加一个
tomcat7的tomcat-juli.jar包（tomcat7.0中的bin里面带有）

jar到病除啊。