• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Tim Cooke
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
Saloon Keepers:
  • Piet Souris
Bartenders:

Dynamic Loading Class in RMI

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I create a interface...and implement in SERVER Directory ....
when i RUN client i got Exception CLASS DEF NOT FOUND....

FIRST I START WEB SERVER in (download directory) first window
1) ---> java NanoHTTPD 8080

then i start rmi registry ( second window)(RMIDIR Directory)
2) ---->RMIREGISTRY
then i start Server (Third window) (Server Directory)
3) ---->java -Djava.rmi.server.codebase=http://localhost:8080/ WarehouseServer
then i start client
(Four window) (client Directory)
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.......
PLEASE TELL ME HOW TO do a DYNAMIC DOWNLOADING CLASS.......
 
Bartender
Posts: 1638
IntelliJ IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You need to KeepItDown

Does the troubleshooting tips here help?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic