This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
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: 2726
    
    3

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


Author of ExamLab (Download) - the free mock exam kit for SCJP / OCPJP
Home Page -- Twitter Profile -- JavaRanch FAQ -- How to Ask a Question
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Dynamic loading of class in RMI
 
Similar Threads
codebase problem
Dynamic Loading Class in RMI
Running a RMI Application
how to load class dynamically from another location In RMI
HF - What goes where question