eclipse中出现The import com.opensymphony cannot be resolved的解决办法
来源:互联网 发布:js符文 编辑:程序博客网 时间:2024/06/14 01:10
因 为用的是最新的版本:即导入的jar包有:commons-logging-1.0.4.jar、ognl-2.6.11.jar、struts2- core-2.2.1.1.jar、xwork-2.2.1.1.jar等,在使用ActionContext()时,说cannot be resolved,后来引入import com.opensymphony.xwork2.ActionContext; 又报The import com.opensymphony cannot be resolved。其解决办法是:直接导入xwork-core-2.2.1.1.jar包就可以啦!
其导入步骤为:
右 键点击工程-->properties-->Java Build Path-->Libraries-->Add External JARs ,选择你要导入的包;也可以新建个Library ,选择User Library然后Add JARs ,让后将你的Library导入工程。
当然若项目是个maven工程的话可以直接在pom文件中添加依赖
0 0
- eclipse中出现The import com.opensymphony cannot be resolved的解决办法
- android开发: The import com.google cannot be resolved 的解决办法
- android开发: The import com.google cannot be resolved 的解决办法
- android开发: The import com.google cannot be resolved 的解决办法
- The import com. cannot be resolved
- The import com... cannot be resolved解决方法
- The import com. cannot be resolved
- The import com.google cannot be resolved
- 在Eclipse中编写servlet时出现"The import javax.servlet cannot be resolved" 问题解决办法
- 在Eclipse中编写servlet时出现"The import javax.servlet cannot be resolved" 问题解决办法
- Eclipse中编写servlet时出现"The import javax.servlet cannot be resolved" 问题解决办法
- 在Eclipse中编写servlet时出现"The import javax.servlet cannot be resolved" 问题解决办法
- 在Eclipse中编写servlet时出现\"The import javax.servlet cannot be resolved\" 问题解决办法
- eclipse中the import javax.servlet cannot be resolved问题
- eclipse中the import javax.servlet cannot be resolved 解决方法
- 出现The import javax.servlet cannot be resolved 的解决方法
- 出现The import javax.servlet cannot be resolved 的解决方法
- spring中出现的错误:The import org.springframework cannot be resolved
- CGI实例--表单GET与POST示例
- CSS:通用选择器
- win7安装nodejs失败
- div 等效blur focus
- 直接插入排序
- eclipse中出现The import com.opensymphony cannot be resolved的解决办法
- USB OTG协议基础
- LeetCode刷题 | Add Binary
- Java的内存泄漏
- Jackson Annotation学习笔记
- eclipse下切换svn用户 (换用户登录)
- 微软阵营企稳的利好消息:.NET开源、Visual Studio免费
- Dmidecode
- Oracle中动态cursor(游标)总结