aspose file tools*
The moose likes Distributed Java and the fly likes Dynamic Loading Class in RMI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Dynamic Loading Class in RMI" Watch "Dynamic Loading Class in RMI" New topic
Author

Dynamic Loading Class in RMI

dashang trivedi
Greenhorn

Joined: Mar 01, 2010
Posts: 26
I create a interface...and implement in SERVER Directory ....
when i RUN client i got Exception CLASS DEF NOT FOUND....

FIRST I START WEB SERVER in (download directory) first window
1) ---> java NanoHTTPD 8080

then i start rmi registry ( second window)(RMIDIR Directory)
2) ---->RMIREGISTRY
then i start Server (Third window) (Server Directory)
3) ---->java -Djava.rmi.server.codebase=http://localhost:8080/ WarehouseServer
then i start client
(Four window) (client Directory)
4) ---->java WarehouseClient
when i run client then i got exception class name not found.....because i use Interface object in client code......

SO HOW DYNAMIC DOWNLOADING CLASS IS DONE???

if I Manually Copy CLASS file IN CLIENT directory then program successfully run.......
PLEASE TELL ME HOW TO do a DYNAMIC DOWNLOADING CLASS.......
Nitesh Kant
Bartender

Joined: Feb 25, 2007
Posts: 1638

You need to KeepItDown

Does the troubleshooting tips here help?


apigee, a better way to API!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dynamic Loading Class in RMI