MyEclipse 导入项目时出现如下错误,检查过,包的导入都正常
Error!]the type
Java
.lang.object cannot be resolved. it is indirectly referenced from required .class files
找了半天,才发现,原来是jdk的问题,原来是没有导入jdk的包。
也有可能是这个原因:电脑上有多个jdk的版本,这样MyEclipse导入的时候就会出现问题,一般情况下,使用MyEclipse自己带的Jdk版本,我装的是jdk 1.6.013 ,即使重新导入这个也不管用,后面只好用Myeclipse自己带的1.6.0013的版本就好了。
操作步骤:project->properties->
Java
Bulid Path 将原有的jdk删除
然后Java Build Path -----> Libraries---->Add Libraries----->JRE System Library 选择MyEclipse自带的jdk或是选择自己适合的包即可。
[Error!]the type java.lang.object cannot be resolved. it is indirectly reference
原创
©著作权归作者所有:来自51CTO博客作者wx6302e02ec3673的原创作品,请联系作者获取转载授权,否则将追究法律责任
上一篇:UML系列图--用例图
下一篇:WebView直接访问手机版,
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
java myeclipse The type java.lang.CharSequence cannot be resolved. It is indirectly referen
The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files环境和配置 我的myEclipse版本: Version: 10.7 Build id: 10.7-20121026解决方案: 1、对JDK进行降级。...
myeclipse错误 IDEA IDE Eclipse 开发 -
The type XXX cannot be resolved. It is indirectly referenced from required .class
在Eclipse中遇到Thetype XXX cannot be resolved. It is indirectly referenced from required .classfiles错误.....,查找的解决办法如下:一: Itis indirectly referenced from required .class file原因:你正要使用的类调用了另一个类,而这个类又调用了
file cannot required indirectly building -
Eclipse提示The **** cannot be resolved. It is indirectly referenced from required .cl
1、问题代码正常,提示这个错误The **** cannot be resolved. It is indirectly referenced from required .cl2、解决办法把提示错误地方的类改成在这个****包名下面就行
Eclipse The cannot be resol It is indirectly ref referenced from requ 包名