• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

jdk1.5 doesn't create skeleton what's the new way of doing this in 1.5

 
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ranchers,

I created an RMI application using jdk1.5. When I used rmic to generate the stub and skeleton, it generated only the stub without the skeleton. When I tried to run the client from the client machine, I got an error along the lines of: Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: MyServerClass.

Can anyone explain this phenomenon and how this could be solved? I guess there's a new way of doing this in 1.5
 
Ranch Hand
Posts: 1143
1
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Femi,
Since JDK 1.2 -- and according to the RMI specification -- the "Skeleton" is not required (if both client and server are at least JDK 1.2). I guess that with JDK 5.0, they finally decided that it is now all right to completely discard the "Skeleton", and have "rmic" create a "Stub" only.

From the (lack of) information you have provided, it looks like your client is some kind of GUI application, and you are trying to communicate directly with the remote object. In case you are unaware, the RMI client _must_ interact only with the remote interface (not the remote object).

For your information, Dr Richard Baldwin has a series of "lessons" (as he calls them) on RMI -- that I found very useful when I was learning RMI:

http://www.dickbaldwin.com/tocadv.htm

Lesson 600 is the first in the series.

Good Luck,
Avi.
 
Femi Alla
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks. T'was very helpful.
 
reply
    Bookmark Topic Watch Topic
  • New Topic