The type java.lang.Object cannot be resolved
JAVA The Cannot object be type lang resolved
2023-09-11 14:19:21 时间
-
有时候在Eclipse中打开或者导入项目时会出现标题字样的问题:The type java.lang.Object cannot be resolved. It is indirectly referenced。本文介绍解决此问题经验。
此问题从字面上理解是:java.lang.Object不能识别为一个类,请导入相关依赖文件。java.lang.Object是java中最基础的类。为什么Ecliipse连这个类都找不到呢?原因是:此项目的编译路径配置中的jre路径丢失、或者不匹配。
-
解决方案为:右键项目->build path->config build path ->add library ->选择system jre即可。
-
操作完成,clean一下项目,发现问题解决!
相关文章
- HTTP Status 500 - The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application
- The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files
- java循环结构教程
- Java实现 LeetCode 789 逃脱阻碍者(曼哈顿距离)
- Java实现 蓝桥杯 算法提高 套正方形(暴力)
- Java实现 蓝桥杯 算法训练 二进制数数
- Reporting Service 服务启动时报错The service did not respond to the start or control request in a timely fashion
- Java异常处理和最佳实践(含案例分析)
- 【JAVA秒会技术之秒杀面试官】秒杀Java面试官——集合篇(一)
- 【JAVA】java中的length和length()
- [RxJS 6] The Catch and Rethrow RxJs Error Handling Strategy and the finalize Operator
- [Linux] Install java and add JAVA_HOME, PATH
- 【JAVA】基于MVC架构Java技术荟萃案例演练
- 【JAVA】 03-Java中的异常和包的使用
- 【Java】java使用反射访问对象方法和成员变量
- Java RMI原理与使用
- The response status was 0. Check out the W3C XMLHttpRequest Level 2 spec for
- Java Spring AOP研究之Joint Point
- How to improve Java's I/O performance( 提升 java i/o 性能)
- 成功解决MSB8020 The build tools for v141 (Platform Toolset = ‘v141‘) cannot be found. To build using the
- 【java】EJB(Enterprise Java Bean)概述
- 【java】Java 包(package)
- Java中String类的concat方法___java的String字符串的concat()方法连接字符串和“+“连接字符串解释
- java - idea编译输出缺失导致 The output path is not specified for module XXX - 解决
- 【Java】java 性能监控及工具
- java.io.IOException: Could not locate executable nullbinwinutils.exe in the Hadoop binaries.
- The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar
- Java程序猿从笨鸟到菜鸟之(九十二)深入java虚拟机(一)——java虚拟机底层结构具体解释
- 解决办法:错误异常The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- Error:The supplied javaHome seems to be invalid. I cannot find the java executable. Tried location:
- 【java】Java 抽象类