The project was not built since its build path is incomplete
2016-02-18 11:28
363 查看
错误提示: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 try building this project.
The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files
加载网上下载的开源项目时,出现了上述错误,原因是eclipse在加载项目时会自动根据jre路径加载jar包,但是有多个版本存在是就会出现报错。
解决方法:
1. 进入window
\ preferences \ java \ Installed JREs
1)按Add
2)JRE home directory, 选择安装的路径
3)输入JRE
Name
4)按OK
2. 进入Project
\ properties \ Java Bulid Path
1)Add library
2)选JRE
System Library后按Next
3)选workplace
default JRE后按 finish...
The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files
加载网上下载的开源项目时,出现了上述错误,原因是eclipse在加载项目时会自动根据jre路径加载jar包,但是有多个版本存在是就会出现报错。
解决方法:
1. 进入window
\ preferences \ java \ Installed JREs
1)按Add
2)JRE home directory, 选择安装的路径
3)输入JRE
Name
4)按OK
2. 进入Project
\ properties \ Java Bulid Path
1)Add library
2)选JRE
System Library后按Next
3)选workplace
default JRE后按 finish...
相关文章推荐
- Android UI开发: 横向ListView(HorizontalListView)及一个简单相册的完整实现 (附源码下载)
- 如何使用Liquibase
- UIPickerView的简单使用
- SystemUI中的访客模式整理
- 监听到UITextField的文本文字改变的3种方法
- LeetCode :232. Implement Queue using Stacks(剑指offer面试题)
- 转:getContextPath、getServletPath、getRequestURI的区别
- 你也来学设计模式 之 Builder模式
- UIViewAnimationOptions
- Usage of forceLayout(), requestLayout() and invalidate()
- android 传统蓝牙Bluetooth联通性
- iOS环信3.0集成 (二)UI文件集成
- UITextField
- 使用UITextField 键盘遮盖输入框
- Java调用XML的方法:DocumentBuilderFactory
- 四、UiDevice API 详细介绍
- 为什么Java 两个Integer 中1000==1000为false而100==100为true?
- UI操作 解决方案
- MySQL中出现 Field 'tid' doesn't have a default value错误
- UIUC大学之Coursera课程Text Retrieval and Search Engines:Week 1 Quiz