nag
nag

Reputation: 930

How to fix error "org.apache.axis cannot resolved to a type"?

When I build my program, it gives the error:

org.apache.axis cannot resolved to a type

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?

Upvotes: 0

Views: 23385

Answers (2)

Jon Skeet
Jon Skeet

Reputation: 1500903

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.

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

Upvotes: 4

posdef
posdef

Reputation: 6532

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.

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

Upvotes: -1

Related Questions