kristain

博客园 首页 新随笔 联系 订阅 管理

问题1:

import=”sun.misc.BASE64Decoder” 
出现错误提示为:Access restriction: The type BASE64Decoder is not accessible due to restriction 
on required library D:\ProgramFiles\MyEclipse\jre\lib\rt.jar 

解决方案: 

1. Open project properties. 
2. Select Java Build Path node. 
3. Select Libraries tab. 
4. Remove JRE System Library. 
5. Add Library JRE System Library. 

问题2:

DispatcherServlet.java:3: 软件包 javax.servlet 不存在 

解决方案:

打开工程属性,导入tomcat下的servlet-api.jar

posted on 2011-06-28 08:42  kristain  阅读(172)  评论(0编辑  收藏  举报