zoukankan      html  css  js  c++  java
  • 在eclipse中新建java问题报错:The type XXX cannot be resolved. It is indirectly referenced from required .class files

    在Eclipse中遇到The type XXX cannot be resolved. It is indirectly referenced from required .class files错误.....,查找的解决办法如下:

    一: 
    It is indirectly referenced from required .class file

    原因:你正要使用的类调用了另一个类,而这个类又调用了其他类,这种关系可能会有好多层。而在这个调用的过程中,某个类所在的包的缺失就会造成以上那个错误。

    解决方法:导入缺失的包

     二:
    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或者jdk。

    解决方法:手动修改项目引入的jdk版本

  • 相关阅读:
    字串变换
    单词接龙
    二叉搜索树
    搜索专题(未完)
    单调栈
    单调队列练习(切蛋糕&好消息,坏消息)
    队列专题
    滑动窗口/【模板】单调队列
    Linux下如何查看硬件信息?
    Git 居然可以用来跟女神聊天?
  • 原文地址:https://www.cnblogs.com/cocoxu1992/p/10966580.html
Copyright © 2011-2022 走看看