迁移自http://weishuwei.iteye.com/blog/75318
1、The type java.lang.Object cannot be resolved.It is indirectly referenced from required.class files。
出现以上信息的原因是因为你装了多个版本的jre或jdk的关系。本来Eclipse在建立工程时,会自动参 照你的jre路径,但多个版本就没办法了。
你只能手动建立…
a. 进入window\preferences\java\Installed JREs
1)按Add
2)输入JRE Name, 例JDK1.5.0.03
3)JRE home directory, 选择安装的路径
4)按OK
b. 进入Project\properties\Java Bulid Path
1)Add library
2)选JRE System Library后按Next
3)选workplace default JRE后按finish...
2、The import javax.servlet cannot be resolved
上面问题的解决办法如下:将servlet-api.jar(在%TOMCAT_HOME%/\common\lib目录下面可以找 到 这个文件)或者javaee.jar导入每个动态web工程。
分享到:
相关推荐
解决The type org.springframework.dao.support.DaoSupport cannot be resolved.bao报错
cocos The import com.loopj cannot be resolved 是缺失了jar包。导入lib文件夹,或者刷新eclipse就好了。
org.apache.commons.lang.exception.NestableRuntimeException cannot be resolved 解决 替换JAR包即可
commons-lang3-3.1.jar缺失会引起The import org.apache.commons.lang3 cannot be resolved错误
> ★The type org.apache.http.NameValuePair cannot be resolved. It is indirectly referenced from required .class > ★BasicNameValuePair cannot be resolved to a type > ★HttpPost cannot be resolved to a...
jce.jar/jsse.jar解决The import javax.crypto cannot be resolved的问题
The type org.apache.tools.ant.Task cannot be resolved. It is indirectly referenced from required .class files错误....., 解决办法:在工程中加入此jar包
java获取客户端ip(经过多次代理)提示StringUtils cannot be resolved 需要先 import org.apache.commons.lang3.StringUtils; /* 内含 common-lang3.jar commons-lang3-3.9-bin.zip commons-lang3-3.9-src.zip ...
GreenDAO 数据库升级
导入工程的“The import android cannot be resolved”错误解决方法
commons-lang.jar是日常编程中必不可少的一个jar包,在日常java编程中,经常会使用到commons-lang.jar包,还没有准备commons-lang.jar包的用户可以前来下载使用,这里为大家提供了commons-lang3-3.1.jar
rsslib4j-0.2.jar jar包,解决java报错找不到资源包问题 The import org.gnu cannot be resolved。 报错 import org.gnu.stealthp.rsslib.*; RSSChannel、RSSException、RSSHandler、RSSItem、RSSParser
一、Eclipse提示错误The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files 调试Reflact时,Eclipse一直提示The type java.lang.CharSequence cannot be...
org.apache.poi JAR包,解决个人的 import org.apache.commons.beanutils.PropertyUtilsBean; import org.apache.commons.lang.StringUtils;..."The import org.apache.poi cannot be resolved"的问题
主要介绍了java eclipse 出现 xxx cannot be resolved to a type 错误解决方法的相关资料,需要的朋友可以参考下
Java加密解密字符串找不到 com.sun.crypto.provider.SunJCE() 用到jar包
ITextRenderer cannot be resolved to a type 错误就是因为缺少这个jar包
JSTL 标签 发生 uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application问题时解决方法
JSONObject所必须要用到的6个包,他们分别是commons-beanutils-1.7.0.jar、commons-collections-3.1.jar、commons-lang-2.5.jar、commons-logging.jar、ezmorph-1.0.3.jar、json-lib-2.1-jdk15.jar
commons-lang-2.4.jar commons-logging-1.1.jar commons-vfs-20091118-pentaho.jar kettle-core-4.4.0-GA.jar kettle-db-4.4.0-GA.jar kettle-engine-4.4.0-GA.jar log4j-1.2.12.jar logkit-1.0.1.jar servlet-api-...