The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files
使用eclipse 创建java工程写代码时报错:The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files
1、错误原因:
由于eclipse的默认JDK环境与创建java工程设置的相关JDK环境不同导致。
2、解决方案:将eclipse的默认jdk环境设置为1.8(或者创建工程时版本与default版本对应)即可
创建工程时,选择 configure -> 在弹出窗口选择Compiler->选择对应的jdk版本 应用即可。
相关图片如下:
图:选择configure JRE
图:选择对应版本
图:成功创建
The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files相关推荐
- The type java.lang.String cannot be resolved. It is indirectly referenced from required .class files
使用sts导入工程时出现的错误,eclipse,myeclipse导入工程也会出现这个错误 原因:电脑上安装了多个版本的jdk 解决:将该项目的jdk删除 在导入的项目上右击->properti ...
- eclipse中java文件报错:The type java.lang.Object cannot be resolved. It is indirectly referenced from r
问题:The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class fi ...
- The type java.lang.Object cannot be resolved It is indirectly referenced ... .
The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files ...
- the type java.lang.Object cannot be resolved. It is indirectly referenced from ..
在拉取其他分支项目的时候 碰到这个报错 百度了一下 是jdk版本不一致造成的 解决: Flie->Setting->build.....->build tools->gra ...
- 解决报错:The type java.lang.Class cannot be resolved. It is indirectly referenced from required .class f
出错原因:有时候用Eclipse/STS导入一个外来的工程时会出现以上错误,这主要是因为你的电脑上安装了多个版本的jdk. 解决的办法是: 操作步骤: 选中出错的工程project--->pro ...
- Myeclipse --The type java.lang.CharSequence cannot be resolved. It is indirectly referenced ---
The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class ...
- The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced from required .cl
启动项目的时候报错, The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced from r ...
- Android Studio打包报错: Pb(324)The type java.lang.Object cannot be resolved. It is indirectly ...
报该错误一般都是低版本Gradle升级后出现,这是jdk版本与gradle不匹配导致,解决办法如下: 在Project Structure -> SDK Location -> JDK L ...
- The type java.lang.Object cannot be resolved
java常见异常 @(JAVA)[java] 1.The type java.lang.Object cannot be resolved The type java.lang.Object cann ...
最新文章
- HDU - 1255 覆盖的面积(线段树求矩形面积交 扫描线+离散化)
- 银保监局招聘计算机岗位备考,2019年中国银保监会招聘计算机类如何备考?
- PHP学习笔记(一):理解匿名函数与Closure
- 咨询笔记:麦肯锡7步成诗
- python grpc入门
- spring的事务隔离_spring事务基础及常见问题详解
- jq请求Ajax数据
- SQL Server 连接字符串
- 【实战】使用Job来修改Transform
- 一篇由Google Trend引发的Post
- Java库转oc_急急急!各位大神:一段JAVA代码转成OC代码。
- asp.net页面生命周期之页面的终结阶段
- keras.preprocessing.image函数比较
- MSP430单片机学习视频
- 字节跳动「突袭」美团,抖音竟然要做外卖
- 首席新媒体黎想告诉你,不花钱做互联网推广!这些方式了解一下
- 《Hud 2589》Phalanx详解
- Android开发中的WMS详细解析
- Intel 8086处理器
- matlab系统函数伯德图,利用matlab画出根轨迹图|伯德图bode
热门文章
- 正大国际期货:期货投资你的感悟是什么?
- 很多人都想做到却只能看别人做到的:自律
- linux防火墙401,解决git clone时报错:The requested URL returned error: 401 Unauthorized while accessing...
- 其实,“把梳子卖给和尚”不是营销
- 磁共振系统技术之匀场
- BypassUAC方式总结
- 中国人唯一不认可的成功——就是家庭的和睦,人生的平淡(做为程序员的我们又追求什么样的人生呢?)值得思考???
- 图像 - 识别出图片里的数字和字母
- 【安全知识分享】新员工公司级安全生产教育培训(附下载)
- 技术美术个人笔记(八)——瑞利散射与米氏散射