The type java.lang.Object cannot…
来源:互联网 发布:淘宝花呗的客服电话 编辑:程序博客网 时间:2024/06/08 06:14
今天在导完工程的时候报出一下错误
The project was not built since its build path is incomplete.Cannot find the class file for java.lang.Object. Fix the build path then trybuilding this project
The type java.lang.Object cannot beresolved. It is indirectly referenced from required .classfiles
其中红字部分可能是别的类,比如javax.xml.*等等。
从网上查资料说是因為你裝了多個版本的jre或jdk的關係。本來Eclipse在建立專案時,會自動參照你的jre路徑,但多個版本就沒辦法了。
Eclipse使用哪个JDK和你的项目使用哪个JDK是完全不同的概念..
解决办法:
eclipse菜单栏点击project----->propertys
右键你的项目->属性->Java构建路径->库;在这里你就可以看到你的项目所使用的JDK了.把导入时的那个JDK删除.单击右边的"添加库"按钮.选择"JRE系统库".
...
********************************************************
a. 进入window\preferences\java\Installed JREs
***************************************************
可以解决问题
- The type java.lang.Object cannot…
- Type mismatch: cannot&…
- java EE错误,the type&…
- the import ** cannot be resolve…
- The type 'Microso…
- object FUGR SVIM …
- Java中Could not find the main cl…
- Failed to create the Java Virtua…
- java.lang.NoClassDefFoundError: …
- java.lang.NoClassDefFoundError: …
- java.lang.NoClassDefFoundError: …
- SVN:cannot map the&nbs…
- Cannot send session cache limite…
- 1577 – Cannot proceed beca…
- Cannot send session cache limite…
- 解决:Some characters cannot be …
- Cannot start session without err…
- Make sure to have the zlib libs …
- IOException while loading persis…
- 在部署tomcat服务器时候报错java.l…
- 对象不支持此属性或方法
- 一对多关联映射总结---hibernate
- Activity的生命周期一
- The type java.lang.Object cannot…
- android生命周期
- delete void*形式的指针是非常危险的
- struts2中页面表示国际化的方法
- 最短路径:BellmanFord / SPFA / Dijkstra
- Spring 2.5笔记:applicatio…
- 关于解决struts2中xml没有提示的问…
- sj
- zoj3497Mistwald