• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unmarshal Exception - Class not found

 
Matt Bucknam
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I get a class not found exception when I try to run my client. The RMI server starts correctly but it apparently cannot find the stub file to return when the client makes a call. I think it is my codebase parameter but I can't figure it out. If I put the stub class in the path with the client it works correctly.
If the stub class is in a package suncertify.db.Data_Stub and located at c:\test\suncertify\db\Data_Stub.class, shouldn't the value of the codebase be:
-Djava.rmi.server.codebase=file:/c:\test\
And just in case I am completely off target, the codebase is supplied to the server, not the client, right?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic