如何修复错误“org.apache.axis无法解析为某个类型”?

时间:2022-11-07 19:21:39

When I build my program, it gives the error:

当我构建我的程序时,它会给出错误:

org.apache.axis cannot resolved to a type

org.apache.axis无法解析为某个类型

I've seen on some sites that this may be because of enum type which is not there in the latest version of jdk. Currently I'm using jdk 1.6.x. How can I overcome the problem?

我在一些网站上看到这可能是因为枚举类型在最新版本的jdk中没有。目前我正在使用jdk 1.6.x.我怎样才能克服这个问题?

2 个解决方案

#1


3  

org.apache.axis isn't a type anyway - it's a package. However, the types within that package are provided by the Apache Axis project. You'll need to download the libraries and add them to your classpath; the exact details will depend on whether you're using an IDE, the command line, Ant or whatever.

无论如何org.apache.axis都不是一个类型 - 它是一个包。但是,该包中的类型由Apache Axis项目提供。您需要下载库并将它们添加到类路径中;具体细节取决于您使用的是IDE,命令行,Ant还是其他任何东西。

Note that Axis 1 is rather old now... you may wish to consider migrating to a more modern web-service platform.

请注意,Axis 1现在相当老了...您可能希望考虑迁移到更现代的Web服务平台。

#2


-1  

What this means is that the compiler hasn't got a clue on where to find org.apache.axis, so to solve it you should let the compiler know where to find it.

这意味着编译器还没有找到在哪里找到org.apache.axis的线索,所以要解决它,你应该让编译器知道在哪里找到它。

Here's a good link to read a bit up on this particular kind of error (Cannot resolve type).

这是一个很好的链接,可以读取这种特殊的错误(无法解析类型)。

#1


3  

org.apache.axis isn't a type anyway - it's a package. However, the types within that package are provided by the Apache Axis project. You'll need to download the libraries and add them to your classpath; the exact details will depend on whether you're using an IDE, the command line, Ant or whatever.

无论如何org.apache.axis都不是一个类型 - 它是一个包。但是,该包中的类型由Apache Axis项目提供。您需要下载库并将它们添加到类路径中;具体细节取决于您使用的是IDE,命令行,Ant还是其他任何东西。

Note that Axis 1 is rather old now... you may wish to consider migrating to a more modern web-service platform.

请注意,Axis 1现在相当老了...您可能希望考虑迁移到更现代的Web服务平台。

#2


-1  

What this means is that the compiler hasn't got a clue on where to find org.apache.axis, so to solve it you should let the compiler know where to find it.

这意味着编译器还没有找到在哪里找到org.apache.axis的线索,所以要解决它,你应该让编译器知道在哪里找到它。

Here's a good link to read a bit up on this particular kind of error (Cannot resolve type).

这是一个很好的链接,可以读取这种特殊的错误(无法解析类型)。