`
weishuwei
  • 浏览: 324787 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

1、The type java.lang.Object cannot be resolved.It is indirec

阅读更多
迁移自MSN:http://weishuwei.spaces.live.com/
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报错

    在开发Spring框架相关的Java应用时,可能会遇到"The type org.springframework.dao.support.DaoSupport cannot be resolved"的错误提示。这个错误通常意味着编译环境无法找到`DaoSupport`类,这是Spring DAO模块中的...

    The import com.loopj cannot be resolved 的解决方案

    在编程过程中,我们时常会遇到各种编译错误,其中一种常见的问题是"The import com.loopj cannot be resolved"。这个错误信息表明你的项目无法找到`com.loopj`包,这通常是由于缺少必要的库文件导致的。`com.loopj`...

    commons-lang3-3.1.jar

    当你在项目中遇到"The import org.apache.commons.lang3 cannot be resolved"的错误时,通常是因为缺少了这个库的引用,导致你的代码无法找到所需的类。 `org.apache.commons.lang3`是该库的主要包名,其中包含了...

    httpcomponents-client-4.5.5-bin和src_20180518.zip

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

    Java编程排错技巧

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

    jar.zip解决The import javax.crypto cannot be resolved

    然而,有时在开发过程中,我们可能会遇到"The import javax.crypto cannot be resolved"这样的错误提示,这意味着编译器无法找到这个包或者其依赖的库。这通常是由于JDK的默认配置中未包含某些安全相关的扩展,如...

    java eclipse 出现 xxx cannot be resolved to a type 错误解决方法

    Java Eclipse 出现 "xxx cannot be resolved to a type" 错误解决方法 Java Eclipse 是一个功能强大且广泛使用的集成开发环境(IDE),但是在使用过程中可能会出现各种错误信息,例如 "xxx cannot be resolved to a...

    estableRuntimeException cannot be resolved 解决

    在Java编程环境中,我们经常会遇到编译错误提示“XXX cannot be resolved”,这通常意味着系统无法找到指定的类或方法。在这种情况下,"org.apache.commons.lang.exception.NestableRuntimeException cannot be ...

    GreenDAO3.0

    - **数据访问对象(Data Access Object, DAO)**:DAO接口提供了一组方法,用于对数据库进行增删改查(CRUD)操作。GreenDAO自动生成这些接口的实现。 2. **GreenDAO3.0的新特性** - **改进的代码生成**:相比旧版本...

    apache-ant-1.8.2.jar

    The type org.apache.tools.ant.Task cannot be resolved. It is indirectly referenced from required .class files错误....., 解决办法:在工程中加入此jar包

    org.apache.commons.lang3.StringUtils.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 ...

    导入工程的“The import android cannot be resolved”错误解决方法

    在进行Android应用开发时,尤其是使用Eclipse作为集成开发环境(IDE)时,开发者可能会遇到一个常见的错误:“The import android cannot be resolved”。这个错误通常发生在尝试导入或打开一个已存在的Android项目...

    JSON-java-master.zip

    JSONObject cannot be resolved to a type 是因为缺少对应的依赖包:org-json.rar 包的来源github的项目:https://github.com/stleary/JSON-java中的Readme可以找到依赖包的地址。

    rsslib4j-0.2.jar jar包,解决java报错找不到资源包问题 The import org.gnu cannot be resolved

    rsslib4j-0.2.jar jar包,解决java报错找不到资源包问题 The import org.gnu cannot be resolved。 报错 import org.gnu.stealthp.rsslib.*; RSSChannel、RSSException、RSSHandler、RSSItem、RSSParser

    commons-lang3-3.1.jar 附导入教程.rar

    commons-lang.jar是日常编程中必不可少的一个jar包,在日常java编程中,经常会使用到commons-lang.jar包,还没有准备commons-lang.jar包的用户可以前来下载使用,这里为大家提供了commons-lang3-3.1.jar

    加密解密字符串找不到 com.sun.crypto.provider.SunJCE

    Java加密解密字符串找不到 com.sun.crypto.provider.SunJCE() 用到jar包

    org.apache.poi jar包

    org.apache.poi JAR包,解决个人的 import org.apache.commons.beanutils.PropertyUtilsBean; import org.apache.commons.lang.StringUtils;..."The import org.apache.poi cannot be resolved"的问题

    JSTL 发生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问题时解决方法

    org.apache.commons.codec包

    解决经常遇到的The import org.apache.commons.codec cannot be resolved问题,只需导入文件中的commons-codec-1.11.jar就可以,如和导入包就不赘述了。

    详解 问题:HttpServlet cannot be resolved to a type

    在开发Java Web应用程序时,你可能会遇到一个常见的错误:“HttpServlet cannot be resolved to a type”。这个错误通常发生在尝试使用`HttpServlet`类时,而Eclipse IDE无法找到对应的类定义。`HttpServlet`是Java ...

Global site tag (gtag.js) - Google Analytics