`

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

阅读更多

遇到eclipse 运行程序时,出现了错误:“Could not find the main class. Program will exit.”

 

按网上的说法,换JRE版本,重装JDK,eclipse 等等,没有搞掂。

 

后来发现,新建的工程可以正常运行,由此判断是工程的问题,于是我把备份的工程根目录下的“.classpath” 替换一下

 

就可以了;即”.classpath“问题!!

 

=========================================================

今天是2010年1月19日,有出现了这个问题,起因是我换了eclipse, 还是弄了半天,classPath 替换也不行,

 

最后是这样的 右键-》properties _> java build path->Libraries->看有红叉没有,是有些包没有找到,编译不了!

 

 

 

2
0
分享到:
评论
1 楼 俊.李 2011-04-15  
没有看到红叉,我用的是myeclipse9.0,JDK6.0,weblogic10.3.3,用tomcat就没事,但用weblogic就有问题,怀疑是weblogic哪里配置错了,昨天还是好好的,今天重装了weblogic还是不行。

相关推荐

Global site tag (gtag.js) - Google Analytics