Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
    Bookmark Topic Watch Topic
  • New Topic

Dynamic loading of class in RMI

 
dashang trivedi
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Marshal
Pie
Posts: 4392
249
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Report post to moderator
Welcome to JavaRanch.
Please UseOneThreadPerQuestion.
Let's continue the discussion in your other topic. I'm locking this one.
 
    Bookmark Topic Watch Topic
  • New Topic