This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Java in General and the fly likes compiling OK; runtime class not found Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "compiling OK; runtime class not found" Watch "compiling OK; runtime class not found" New topic
Author

compiling OK; runtime class not found

Zhenhai Li
Greenhorn

Joined: Oct 12, 2001
Posts: 6
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.(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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: compiling OK; runtime class not found