完整错误信息:
Errors(2 item)
1.The type java.lang.Enum cannot be resolved. It is indirectly referenced from required.class files.
2.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
一般是包丢失的问题,只要导入缺失的包,就可以解决问题。
可能的原因是,缺失JRE System Library[jdk]的一些包,或者是机子上装了多个版本的
jre或者jdk的原因。可以手动确定:
1.进入
Window \ Preferences\Java\Installed JREs,点击“Add”按钮,输入JRE name(名称)和
JRE home directory(jre安装路径,如:C:\Java\jdk)
2.右键选中工程名称,选择properties\Java Bulid Path ,点击“Add Library”按钮,
选中“JRE System Library”,按“Next”,选择“Workspace default JRE(jdk)”,然后点击
“Finish”即可
分享到:
相关推荐
It is indirectly referenced from required .class files 调试Reflact时,Eclipse一直提示The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files。...
The type org.apache.tools.ant.Task cannot be resolved. It is indirectly referenced from required .class files错误....., 解决办法:在工程中加入此jar包
The type org.springframework.dao.DataAccessException cannot be resolved. It is indirectly referenced from required .class files 解决方法: 导入spring-tx-4.2.2.RELEASE.jar包。
The type org.apache.tools.ant.Task cannot be resolved. It is indirectly referenced from required .class files 部署openfire4.2.1
The type com.google.j2objc.annotations.ReflectionSupport$Level cannot be resolved. It is indirectly referenced from required .class files
The type org.xmlpull.v1.XmlPullParser cannot be resolved. It is indirectly referenced from required .class files报错时导入xmlpull_1_0_5.jar
validation-api-2.0.0.Final.jar 主要用于支持Maven项目,缺失可引起以下异常The type javax.validation.Payload cannot be resolved. It is indirectly referenced from required .class files
It is indirectly referenced from required .class > ★BasicNameValuePair cannot be resolved to a type > ★HttpPost cannot be resolved to a type > ★NameValuePair cannot be resolved to a type > ★...
If this type library is explicitly or indirectly (via // another type library referring to this type library) re-imported, or the // 'Refresh' command of the Type Library Editor activated while ...
Special Report on Gene Therapy Companies, K. K. Jain. Chichester: Wiley, 2000....directly or indirectly involved in gene therapy. Informa- tion on these companies was prepared by summarizing pu
在IT行业中,矩阵运算在图形学、物理学、工程计算等领域有着广泛的应用。Java作为一个多用途的编程语言,也提供了处理矩阵运算的库,比如VecMath。VecMath是Java 3D的一部分,它提供了一系列用于向量和矩阵操作的类...
前端以 request payload形式传参,通过qs.min.js实现传参,实现后台接收 。
Special Report on Gene Therapy Companies, K. K. Jain. Chichester: Wiley, 2000....directly or indirectly involved in gene therapy. Informa- tion on these companies was prepared by summarizing pu
- ADD: Add TFlexPanel.InvalidateControl virtual method which calls from TFlexControl.Invalidate and can be overriden (it is possible now to catch all object invalidation calls). - FIX: The TFlexPanel....
information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages ...
The type org.springframework.dao.DataAccessException cannot be resolved. It is indirectly referenced异常缺少的包
caused or alleged to be caused directly or indirectly by this book. Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by ...