IntelliJ Java IDE
The moose likes Distributed Java and the fly likes Dynamic loading of class in RMI Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Reply locked New topic
Author

Dynamic loading of class in RMI

dashang trivedi
Greenhorn

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

FIRST I START WEB SERVER
1) ---> java NanoHTTPD 8080

then i start rmi registry
2) ---->RMIREGISTRY
then i start Server
3) ---->java -Djava.rmi.server.codebase=http://localhost:8080/ WarehouseServer
then i start client

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.......
PLEAZE TELL ME HOW TO do a DYNAMIC DOWNLOADING CLASS.......
Devaka Cooray
Saloon Keeper

Joined: Jul 29, 2008
Posts: 2595

Welcome to JavaRanch.
Please UseOneThreadPerQuestion.
Let's continue the discussion in your other topic. I'm locking this one.


Author of ExamLab - the free mock exam kit for SCJP / OCPJP
Home Page -- Twitter Profile -- JavaRanch FAQ -- How to Ask a Question
 
 
subject: Dynamic loading of class in RMI
 
Threads others viewed
Running a RMI Application
Dynamic Loading Class in RMI
HF - What goes where question
how to load class dynamically from another location In RMI
codebase problem
MyEclipse, The Clear Choice

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