JBOSS 点滴

丰丰的博客

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

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工程。

posted on 2011-12-05 16:05 半导体 阅读(433) 评论(0)  编辑  收藏 所属分类: Eclipse


只有注册用户登录后才能发表评论。


网站导航: