aspose 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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 2885
    
  13

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
My Home Page -- Twitter Profile -- JavaRanch FAQ -- How to Ask a Question
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dynamic loading of class in RMI
 
Similar Threads
Running a RMI Application
HF - What goes where question
Dynamic Loading Class in RMI
codebase problem
how to load class dynamically from another location In RMI