Eclipse错误 - “找不到或加载主类” [英] Eclipse Error - "Could Not Find Or Load Main Class"
问题描述
我尝试运行Java程序,我得到这个消息:
错误:找不到或加载主类CLASSNAME
这个事情发生在我所有的java程序中,包括我之前开发的(在Eclipse上运行没有问题)。不过昨天并非如此,我能够运行开发的程序没有问题。
我没有卸载/更改我的Java安装。开发的程序运行没有问题,当我使用另一个IDE来运行它...
如何解决这个问题?
谢谢!
我遇到同样的问题,我在配置构建路径中删除了一个jar文件它开始为我工作正常。
I started using Eclipse today to develop my java programs (did not move/touch any settings).
I try to run the Java programs, and I get this message:
Error: Could not find or load main class CLASSNAME
This happens for ALL my java programs, including those I developed before (and ran without problems on Eclipse). However, this was not the case yesterday; I was able to run developed programs without problem.
I did not uninstall/change my Java installation. The developed programs run without problem when I use another IDE to run it...
How to fix this? Thanks!
I had same problem one of the jar files was missing which i removed in the configure build path it started working fine for me.
这篇关于Eclipse错误 - “找不到或加载主类”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!