The moose likes Distributed Java and the fly likes Dynamic Loading Class in RMI Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Reply 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: 1629

You need to KeepItDown

Does the troubleshooting tips here help?


apigee, a better way to API!
 
 
subject: Dynamic Loading Class in RMI
 
Threads others viewed
Running a RMI Application
in rmi Its necessary to manually copy a Class file for remote interface in client directory?
Dynamic loading of class in RMI
how to load class dynamically from another location In RMI
codebase problem
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture