• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Femi Alla
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • 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
 
Avi Abrami
Ranch Hand
Posts: 1141
1
Java Oracle
  • Mark post as helpful
  • send pies
  • 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: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. T'was very helpful.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!