Note that there are some explanatory texts on larger screens.

plurals
  1. POJava RMI NoClassDefFoundError (development on Netbeans IDE)
    text
    copied!<p>I'm a student, and I'm trying to write an RMI application.</p> <p>I have 3 separate projects: </p> <ul> <li>One is Server Side</li> <li>One is Common (include Interface and Entities to reflect with Database Structure)</li> <li>One is Client</li> </ul> <p>and I write it on Netbeans IDE.</p> <p>When I start server I receive a printstack error like this:</p> <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: rmi/cosmetic/Interfaces/ICategories at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:791) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:449) at java.net.URLClassLoader.access$100(URLClassLoader.java:71) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:423) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) at Server.ServerSide.main(ServerSide.java:22) Caused by: java.lang.ClassNotFoundException: rmi.cosmetic.Interfaces.ICategories at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:423) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) ... 13 more Java Result: 1 </code></pre> <blockquote> <p>rmi/cosmetic/Interfaces/ICategories</p> </blockquote> <p>is the path of file Interface Categories, it has been contained in Common Project for both of 2 sides client and server</p> <p>I have no idea about this issue. I try to set classpath on my windows but it didn't work.</p> <p>Can someone please help me?</p> <p>Some images, to make it clear </p> <p><a href="http://upanh.7nghiep.com/vgo-images/vgo.vn-qIntT.jpg" rel="nofollow">http://upanh.7nghiep.com/vgo-images/vgo.vn-qIntT.jpg</a></p> <p><a href="http://upanh.7nghiep.com/vgo-images/vgo.vn-jaJw0.jpg" rel="nofollow">http://upanh.7nghiep.com/vgo-images/vgo.vn-jaJw0.jpg</a></p> <p>upanh.7nghiep.com/vgo-images/vgo.vn-RvxIo.jpg</p> <p>upanh.7nghiep.com/vgo-images/vgo.vn-DvuMt.jpg</p> <p>upanh.7nghiep.com/vgo-images/vgo.vn-OI9rL.jpg</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload