NoClassDefFoundError, with the bootstraping example.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   rekha_rao
Posted On:   Friday, March 8, 2002 05:03 PM

Can anyone help me with this ? The HTTP server returns the bytes. I see it in the output. 'RMIClient', is located on a different machine. RMIServer is started just one directory above: 'examples/bootstrap/rmi'(which is where 'RMIClient' is located). Error log: Exception in thread "main" java.lang.NoClassDefFoundError: RMIClient (wrong name: examples/bootstrap/rmi/RMIClient) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$   More>>

Can anyone help me with this ?


The HTTP server returns the bytes. I see it in the output.



'RMIClient', is located on a different machine. RMIServer is started just one directory
above: 'examples/bootstrap/rmi'(which is where 'RMIClient' is located).



Error log:


Exception in thread "main" java.lang.NoClassDefFoundError: RMIClient (wrong name: examples/bootstrap/rmi/RMIClient)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at sun.rmi.server.LoaderHandler.loadClass(Unknown Source)
at sun.rmi.server.LoaderHandler.loadClass(Unknown Source)
at java.rmi.server.RMIClassLoader.loadClass(Unknown Source)
at examples.bootstrap.RMIClientLoader. (RMIClientLoader.java:47)
at examples.bootstrap.RMIClientLoader.main(RMIClientLoader.java:60)

at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at sun.rmi.server.LoaderHandler.loadClass(Unknown Source)
at sun.rmi.server.LoaderHandler.loadClass(Unknown Source)
at java.rmi.server.RMIClassLoader.loadClass(Unknown Source)
at examples.bootstrap.RMIClientLoader. (RMIClientLoader.java:47)
at examples.bootstrap.RMIClientLoader.main(RMIClientLoader.java:60)

   <<Less

Re: NoClassDefFoundError, with the bootstraping example.

Posted By:   pradeep_kumar  
Posted On:   Monday, April 15, 2002 06:33 AM

save the rmiclient to the directory where yr stub calses are
About | Sitemap | Contact