Re: Strange problem looks even stranger

Gregg Wonderly <[email protected]> Tue, 14 Nov 2006 15:24:49 -0600
Newsgroups gmane.comp.java.sun.rmi
Message-ID <[email protected]>
Georges Louis wrote:
>      Exception in thread "main" java.lang.NoClassDefFoundError: rmisrv/I_Srv
>         at rmicli.Cli.main(Cli.java:15)

NoClassDefFoundError is distinctly different from ClassNotFoundException.
NoClassDefFoundError means that some other class/interface referred to by the
I_Srv class is missing.  Make sure you've included all the dependent classes.

There are several tools laying around in the Jini community that we use for
building the list of dependent classes recursively so that we can just specify
the top level class (and classes that are loaded by name) and end up with a
complete downloadable jar.

Gregg Wonderly

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff RMI-USERS".  For general help, send email to
[email protected] and include in the body of the message "help".

For a list of frequently asked RMI questions please refer to:
http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html

To view past RMI-USERS postings, please see:
http://archives.java.sun.com/archives/rmi-users.html