Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Issues creating a JAR: NoClassDefFoundError

807589Sep 11 2008 — edited Sep 11 2008
Hi, I'm a bit confused with this particular situation. I usually don't have any issues exporting a JAR from my IDE (I'm using Eclipse), but perhaps it has something to do with the fact that I'm using Apache Axis?

Anyways, when the application runs on my IDE environment, it has no issues, but when I try to run it through command line, I get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: VBAdder (wrong name: com/webservices/VBAdder)
I'm not sure why it's a package related issue, as I've tried all sorts of ways to call it and the packages are referenced properly (to my understanding at least). Also, if I export the JAR and run that through command line, I get a different error:
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/rpc/ServiceException
I also tried to create a separate main class that would call on the original class, but I get a similar Axis-related exception:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/AxisFault
I've checked my CLASSPATH as well as the project's build path, and they are both referencing the correct axis jar's and libraries. So my question is: does this seem like it is a package related issue (as it's unable to execute through cmd) or is it an axis jar related issue? If anyone has come across any similar problems before, I'd love to know how it was resolved as I've been stuck on this for a couple of days now.

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 9 2008
Added on Sep 11 2008
2 comments
528 views