File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Distributed Java and the fly likes Dynamic loading of class in RMI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
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
ExamLab Creator
Saloon Keeper

Joined: Jul 29, 2008
Posts: 3049
    
  36

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


Author of ExamLab ExamLab - a free SCJP / OCPJP exam simulator
What would SCJP exam questions look like? -- Home -- Twitter -- How to Ask a Question
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dynamic loading of class in RMI