Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The exception is occurring because the rmiregistry application doesn't know where to load classes from. When you attempt to bind an object in the RMI registry, the registry downloads the class definition for that object. Some of the other answers are telling you to get around this by setting the classpath for the rmiregistry app so that it has the class definitions when it is started and doesn't need to download anything, but Sun's Java RMI tutorial <strong><a href="http://java.sun.com/docs/books/tutorial/rmi/running.html" rel="noreferrer" title="Running the Example Programs (The Java Tutorials &gt; RMI)">explicitly says not to do this</a></strong>. I suspect this has the potential to cause conflicts between the version of the class in the registry and the class on the server.</p> <p>The correct way to handle the problem is to set the java.rmi.server.codebase property as you were trying to do. The property requires that a directory path be terminated with a forward slash, like so:</p> <pre> -Djava.rmi.server.codebase=file:${workspace_loc}/progInternet2008/ </pre> <p>You may also be having trouble if the ${workspace_loc} variable is a relative path and the rmiregistry application was not started in the same directory so the relative path is not correct for it. If you either make the path absolute, or start the rmiregistry in the appropriate directory, the ClassNotFoundException should go away. See the <a href="http://java.sun.com/javase/6/docs/technotes/guides/rmi/codebase.html" rel="noreferrer" title="Dynamic code downloading using Java RMI">tutorial on the java.rmi.server.codebase property</a> for a little more detailed information.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

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