Skip to Main Content

New to Java

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!

Hectic error -> java.lang.NoClassDefFoundError

807597Jun 15 2005 — edited Jun 16 2005
Hi All,

I'm getting a strange error in my program when I execute my application, the error is java.lang.NoClassDefFoundError.

Basically, I writing a RMI application, in that I'm in need of using a collection which should support duplicate keys and duplicate values. This duplicate keys are not supported by our Sun's JDK APIs (everyone knows). So, to achieve this duplicate keys in the collection, I got a API from Apache (org.apache.commons.co
llections.MultiHashMap). which supports duplicate keys.

I have placed the jar in the CLASSPATH which contains this org.apache.commons.collections.MultiHashMap class. I have compiled the class with jdk1.3, it was compiling properly without any error. when i try to execute it, it says the following error.

Starting server...
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/collections/MultiHashMap
at java.lang.Class.getMethod0(Native Method)
at java.lang.Class.getMethod(Class.java:883)
at ClrQstOperImpl_Stub.<clinit>(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Native Method)
at sun.rmi.server.RemoteProxy.getStub(RemoteProxy.java:93)
at sun.rmi.server.ActivatableRef.getStub(ActivatableRef.java:65)
at java.rmi.activation.Activatable.register(Activatable.java:217)
at ActivableServer.main(ActivableServer.java:31)


Please provide me some solution. Thanks in advance for your knowledge sharings and solutions.

Thanks & Regards,
Prabu
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 14 2005
Added on Jun 15 2005
5 comments
421 views