日期:2014-05-20  浏览次数:20709 次

Counld not find the main class
我新建立的web工程,选择run as ... java application,
之后选择确定
为什么总是提示 :  

java virtual machine launcher
Counld not find the main class. Program will exit.

到底什么原因?

------解决方案--------------------
你建的是"web工程", 怎么能run as java application呢????
------解决方案--------------------
工程运行??


------解决方案--------------------
web工程要在服务器上才能运行,以搭建一个环境就可以。用tomcat搭建就行。
------解决方案--------------------
你工程运行的有main方法的类是哪个呢?