Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

java.lang.NoClassDefFoundError: com/fedex/api/FedExAPI  RSS feed

 
Zhenhai Li
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This seems wield to me. I hope to find somebody has the same experience could help me.
I am using FedExAPI.JAR in one of my class Shipping.java. I call a constructor FedExAPI() in Shipping.java. The classpath environment was set correctly because the Shipping.java could be compiled without complain. However the FedExAPI() constructor could not be found at runtime giving me an exception like this
001.10.15 12:08:39: Multiserver,ERROR: Unable to change application to running state: com/fedex/api/FedExAPI
2001.10.15 12:08:39: Multiserver,ERROR+ java.lang.NoClassDefFoundError: com/fedex/api/FedExAPI
2001.10.15 12:08:39: Multiserver,ERROR+ at dCommerce.business.Shipping.<clinit>(Shipping.java:15)
What is wrong here? Shipping.class runs well on a test server with same environment of Linux6.2, jdk1.2.2 and pentium iii.
Any hint will be appreciated
Zhenhai
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This forum is intended for questions and comments about this web site, www.javaranch.com. It is not for questions about the Java language - that's what all our other forums are for.
Try posting your question in one of the other forums. You will probably have more luck getting an answer!
 
Zhenhai Li
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh, I am sorry. I didnot realize that. Thank you for telling me this
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!