• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

RMI and stubs

 
Ranch Hand
Posts: 532
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi:
I am using Eclipse as an IDE. I build a small class to register an object with RMI registery. When I run it, I got StubNotFoundException. After few hours of banging my head on my desk, I used the line command rmic to generate the stub. first It gave error when I put the class name only, it worked fine when I put the full qualified class name. It generated a stub and placed it in the qualified directory. After that, I had to remove the generated stub for its directories and place it in the class files directory, so that it can be visible.
My questions:
1) can I do this using Eclipse? I looked at the help file, but found nothing.
2) Do I have to do all this proceedure everytime I generate a remot object?
3) Do I need to include the stubs in the jar file when I submit it, or how can the examiner know what to generated?

thanks
 
author and jackaroo
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have moved this to the IDE's and other tools forum.
 
If we don't do the shopping, we won't have anything for dinner. And I've invited this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic