Eclipse错误 - “找不到或加载主类” [英] Eclipse Error - "Could Not Find Or Load Main Class"

查看:141
本文介绍了Eclipse错误 - “找不到或加载主类”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始使用Eclipse开发我的java程序(没有移动/触摸任何设置)。



我尝试运行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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆