Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RMI - java.rmi.ServerException: ClassNotFound

Status
Not open for further replies.

TroubleX

Programmer
Dec 3, 2003
3
GB
hey guys again. got a RMI prob :'( wondering if anyone know how to solve it.

when i run my RMI server i get the following errors.

Code:
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: 
        java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: 
        java.lang.ClassNotFoundException: ObjectStoreImplementation_Stub

I seriously have no idea what is going on, reading the java.sun site, i relise its something to do with the rmiregistry being a pain and not able to find the class.

I have all my files in a single directory, and start the rmiregstry in a diff directory.

i had this error before, but i somehow managed to get ride of it by working from ground up. but now even if i try that i still get the error.

thanks in advance for any help that you can provide
 
dont worry about this, i have figured out what i had to do.

for reference, if you get a ClassNotFound error when dealing with RMI. all you got to do is set the CLASSPATH to your working directory.

e.g "set CLASSPATH=c:\java

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top