|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
I have written a shared whiteboard. Everything works fine, but I can't load the client stub files from the server's codebase. I'm starting the server with: rmiregistry java -Djava.rmi.server.codebase=file:///c:/whiteboard/server/ -Djava.security.policy=my.policy WhiteboardServerImpl The client with: java -Djava.security.policy=my.policy WhiteboardClientImpl But I always get the error message: Stub class not found: WhiteboardClientImpl_Stub; nested exception is: java.lang.ClassNotFoundException: WhiteboardClientImpl_Stub Stub class not found: WhiteboardClientImpl_Stub; nested exception is: java.lang.ClassNotFoundException: WhiteboardClientImpl_Stub Why can't the client find the stub files? Any ideas? Thanx Timon |
|
#2
|
|||
|
|||
|
ClassNotFoundException
Hi,
in case your problem hasn't been solved yet: Did you start your rmiregistry process while your classpath was containing the location of your application ? Cheers, Chris |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Java Development > RMI and loading the client stub from the server's codebase |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|