使用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相关推荐

  1. The type java.lang.String cannot be resolved. It is indirectly referenced from required .class files

    使用sts导入工程时出现的错误,eclipse,myeclipse导入工程也会出现这个错误 原因:电脑上安装了多个版本的jdk 解决:将该项目的jdk删除 在导入的项目上右击->properti ...

  2. 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 ...

  3. 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 ...

  4. the type java.lang.Object cannot be resolved. It is indirectly referenced from ..

    在拉取其他分支项目的时候 碰到这个报错  百度了一下  是jdk版本不一致造成的 解决: Flie->Setting->build.....->build tools->gra ...

  5. 解决报错:The type java.lang.Class cannot be resolved. It is indirectly referenced from required .class f

    出错原因:有时候用Eclipse/STS导入一个外来的工程时会出现以上错误,这主要是因为你的电脑上安装了多个版本的jdk. 解决的办法是: 操作步骤: 选中出错的工程project--->pro ...

  6. 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 ...

  7. 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 ...

  8. Android Studio打包报错: Pb(324)The type java.lang.Object cannot be resolved. It is indirectly ...

    报该错误一般都是低版本Gradle升级后出现,这是jdk版本与gradle不匹配导致,解决办法如下: 在Project Structure -> SDK Location -> JDK L ...

  9. 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 ...

最新文章

  1. HDU - 1255 覆盖的面积(线段树求矩形面积交 扫描线+离散化)
  2. 银保监局招聘计算机岗位备考,2019年中国银保监会招聘计算机类如何备考?
  3. PHP学习笔记(一):理解匿名函数与Closure
  4. 咨询笔记:麦肯锡7步成诗
  5. python grpc入门
  6. spring的事务隔离_spring事务基础及常见问题详解
  7. jq请求Ajax数据
  8. SQL Server 连接字符串
  9. 【实战】使用Job来修改Transform
  10. 一篇由Google Trend引发的Post
  11. Java库转oc_急急急!各位大神:一段JAVA代码转成OC代码。
  12. asp.net页面生命周期之页面的终结阶段
  13. keras.preprocessing.image函数比较
  14. MSP430单片机学习视频
  15. 字节跳动「突袭」美团,抖音竟然要做外卖
  16. 首席新媒体黎想告诉你,不花钱做互联网推广!这些方式了解一下
  17. 《Hud 2589》Phalanx详解
  18. Android开发中的WMS详细解析
  19. Intel 8086处理器
  20. matlab系统函数伯德图,利用matlab画出根轨迹图|伯德图bode

热门文章

  1. 正大国际期货:期货投资你的感悟是什么?
  2. 很多人都想做到却只能看别人做到的:自律
  3. linux防火墙401,解决git clone时报错:The requested URL returned error: 401 Unauthorized while accessing...
  4. 其实,“把梳子卖给和尚”不是营销
  5. 磁共振系统技术之匀场
  6. BypassUAC方式总结
  7. 中国人唯一不认可的成功——就是家庭的和睦,人生的平淡(做为程序员的我们又追求什么样的人生呢?)值得思考???
  8. 图像 - 识别出图片里的数字和字母
  9. 【安全知识分享】新员工公司级安全生产教育培训(附下载)
  10. 技术美术个人笔记(八)——瑞利散射与米氏散射