转载:http://www.ithao123.cn/content-2014376.html
做项目过程中,更新了一下SVN,把自己机器上代码更新成了最新版本,可是在运行程序时发现Eclipse提示:“错误: 找不到或无法加载主类……”。发现根本就没有生成.class文件,也即没有时行编译。后来连错误提示也没有了,点击“build project"后一点反应都没有,不能编译。最后才发现自己犯的错误好低级:工程中的src文件夹不是”源文件包“形式了,显示的是普通文件夹的样式。
解决办法是:在src文件夹上点右键-Build Path-Use as Source Folder,重新进行编译,一切正常了。
还有一种情况是:Eclipse处于打开状态,而这时更新SVN代码,再在Eclipse中运行java程序时也可能会提示“错误: 找不到或无法加载主类……”。
解决办法是:在Eclipse工程文件夹上点右键-Refresh,重新编译,一功OK。
(我遇到的是这种情况)
还有一种可能是:项目的Java Build Path中的Libraries中有个jar包是不可用的,显示红色叉叉。这说明系统找不到这个这个jar文件。解决办法:把这个jar删除即可。
还有一种可能是:项目的Java Build Path中的Libraries中有个jar包的Source attachment指为了一个不可用的jar包,解决办法是:将这个不可用的jar包remove掉。
分享到:
相关推荐
myeclipse5.1 Subscriber:eric Subscription Code:rLR8ZC-056-55-4467865066996602 myeclipse5.5 Subscriber:administrator Subscription Code:nLR7ZL-655342-54657656405281154 myeclipse6.0.1 Subscriber:...
web项目MyEclipse里部署时找不到,解决方案~!
myeclipse-8.5M1-win32 http://downloads.myeclipseide.com/downloads/products/eworkbench/galile o/myeclipse-8.5M1-win32.exe myeclipse-8.5M1-win32 ...o/myeclipse-8.5M1-win32.exe ...name:myeclipse8.5 ...
MyEclipse8.5注册码name:myeclipse8.5 code:zLR8ZC-855550-68567156703100078 name:52accptech code:0LR8ZC-855550-68567157524981450 name:bingchuan code:oLR8ZC-855550-68567157669572882 Subscriber: y ...
(注意:先要如下面的安装路径,安装软件后,再运行汉化工具,才能汉化成功,否则会提示找不到路径。。。) 说明: 使用myeclipse语言插件必须是您第一次安装myeclipse的路径是: Pulse Install Dierctory ---> D:\...
MyEclipse_Key MyEclipse 8.5 MyEclipse 8.6 myeclipse+8.6各个版本注册码 均是8.6版本,可以使用到2014年 一:MyEclipse Standard Edition: zhuce mLR7ZL-655954-69587656619070831 admin nLR7ZL-655564-...
MyEclipse+SSH错误:java.lang.NoClassDefFoundError orgobjectwebasmCodeVisitor解决.rar
myeclipse.10.0.更新发布].myeclipse-10.0-offline-installer-windows.part03 myeclipse.10.0.更新发布].myeclipse-10.0-offline-installer-windows.part03 myeclipse.10.0.更新发布].myeclipse-10.0-offline-...
MyEclipse+hibernate错误:Could not get list of suggested identity strategies from database解决
myeclipse-2015-2014-07-11-offline-installer-文档进行即可完成。
myeclipse-10.5-offline-installer-windows.part03
错误: Problem Occurred Generating Artifacts(Time of error : November 8,2009 6:54:39 PM GMT+08:00) Reason: Could not get list of suggested identity strategies from database. Probably a JDBC driver ...
[myeclipse.10.0.更新发布].myeclipse-10.0-offline-installer-windows.part02 [myeclipse.10.0.更新发布].myeclipse-10.0-offline-installer-windows.part02 [myeclipse.10.0.更新发布].myeclipse-10.0-offline-...
Serial: sLR8ZC-855575-66525457680638618 Name: niuren Serial:aLR8ZC-855575-6652545851831340 ...Your key is: 10580-3FEYM-BZFXI-UA9NE-98BIX-EV827 Enter your name: i_love_java Your key is: 10687-...
myeclipse-8.5.0-win32.zip,安装包
[myeclipse.10.0.更新发布].myeclipse-10.0-offline-installer-windows 迅雷下载地址: http://bigsoft.pc6.com/big/myeclipse.10.rar
MyEclipse 代码提示快捷键设置,帮助大家快速掌握MyEclipse代码提示的快捷键设置
如果发现myeclipse慢了,则可以使用
myeclipse-2017-ci-7-offline-installer-windows和myeclipse-2017-ci-10-offline-installer-windows 百度云链接、密码,永久有效