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

问题原因

jdk版本的问题

解决方案

切换一下jdk就可以了

JDK 切换方式

原文地址:https://www.cnblogs.com/7q4w1e/p/10012798.html

时间: 2024-10-31 22:37:58

The type java.lang.reflect.AnnotatedElement cannot be resolved. It is indirectly referenced from required .class files的相关文章

The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files

JDK版本的问题. 解决方法: 原来jdk1.8不向下兼容,用回1.6的就可以了. 下图有三个jdk,前两个自己装的,第三个MyEclipse自带的.

Java微信开发_Exception_01_The type org.xmlpull.v1.XmlPullParser cannot be resolved. It is indirectly referenced from required .class files

一.源码: package com.souvc.weixin.util; import java.io.InputStream; import java.io.Writer; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import org.dom4j.Document; import org.dom4j.E

The type javax.servlet.http.HttpServletRequest cannot be resolved. It is indirectly referenced from required .class files

我的方法:是缺少servlet的引用库,解决如下 1.工程右键-properties->java build path 2.在java build path的libraries tab页中选择Add external Jars...按钮.server runtime -->next--->选择你要选用的tomcat即可问题解决了.网上别的方法(我没有尝试过): 1.工程右键-properties->java build path 2.在java build path的librari

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

问题描述 Exception in thread "main" java.lang.Error: Unresolved compilation problems: The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files The method getText() from the type TagNode refers to the

eclipse中java文件报错: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 required .class files 大概意思就是.class文件引用错误, 联想一下 编译出了问题, JRE问题. 解决办法:先在Java Bulid Path中把所有的JRE先remove掉,然后重新引入JRE即可.( 右键工程 > Build Path > Configure Build Path > )

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

在用eclipse开发中,有时候需要导入别人的项目进行学习研究偶尔会出现代码无端端显示一大推错误,甚至连包名都出错的情况,这是后把鼠标移动到包名,系统就会弹出The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files的提示 原因是jdk出错. 解决方法是:更换一个jdk,操作步骤:project->properties->Java Bulid Path

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

最近在做J2ME开发项目,配置环境一切OK,但是打开项目时某些文件提示: The type java.lang.String cannot be resolved. It is indirectly referenced from required .class files,经查阅是因为环境中的JRE冲突引起的,我是通过以下方式解决了问题. 在Eclipse上依次打开Windows->Preferences->Java->Build Path->User Libraries,清空列

在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 type XXX cannot be resolved. It is indirectly referenced from required .class files错误.....

遇到The type XXX cannot be resolved. It is indirectly referenced from required .class files错误.....,查找的解决办法如下: 一: 错误提示: It is indirectly referenced from required .class file 错误的解决 原因:你导入得jar依赖另一个jar 解决方法:导入缺失的包