当前位置: 代码迷 >> Eclipse >> myeclipse改为eclipse需要注意的几点
  详细解决方案

myeclipse改为eclipse需要注意的几点

热度:88   发布时间:2016-04-23 01:32:31.0
myeclipse改成eclipse需要注意的几点

在MyEclipse中写的工程引入到eclipse下出现错误 发现import javax.servlet.http.HttpSession无法引入

加入tomcat的jar包,右击项目->build path-add libraries->server Runtime->选择要导入的tomcat 就可以了,如果没有选项,你得配置tomcat

Access restriction: The type Resource is not accessible due to restriction on required library

Eclipse 默认把这些受访问限制的API设成了ERROR。只要把Windows-Preferences-Java-Complicer- Errors/Warnings里面的Deprecated and restricted API中的Forbidden references(access rules)选为Warning就可以编译通过。

  相关解决方案