软件包org.apache.axis2不存在 [英] Package org.apache.axis2 does not exist
本文介绍了软件包org.apache.axis2不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试导入软件包:
I'm trying to import packages:
import org.apache.axis2.context.ConfigurationContext;
import org.apache.axis2.description.AxisService;
import org.apache.axis2.engine.ServiceLifeCycle;
但是我遇到了错误:
package org.apache.axis2.context does not exist
package org.apache.axis2.description does not exist
package org.apache.axis2.engine does not exist
我已经在PATH
环境变量中添加了%AXIS2_HOME%\bin
,并且还在我的CLASSPATH
中设置了C:\apache-tomcat-6.0.30\webapps\axis2\WEB-INF\lib
,但是由于相同的错误,我仍然无法编译Java文件.
I've added %AXIS2_HOME%\bin
in my PATH
environment variable and have also set C:\apache-tomcat-6.0.30\webapps\axis2\WEB-INF\lib
in my CLASSPATH
, but I still can't compile my Java file due to the same errors.
有人知道可能是什么原因吗?
Does anyone know what are the possible reasons?
推荐答案
如果使用的是axis2版本1.6.2,则可以使用下面的jar来解决此问题.
If you are using axis2 version 1.6.2 , you can use below jars to solve this.
AXIS_HOME/lib/axis2-kernel-1.6.2.jar
OR
如果您需要maven依赖
If you need maven dependency
<dependency>
<groupId>org.apache.axis2</groupId>
<artifactId>axis2-kernel</artifactId>
<version>1.6.2</version>
</dependency>
这篇关于软件包org.apache.axis2不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文