• 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

java.rmi.server.codebase - does it need to be set

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

I chose RMI for my networking stuff and it runs fine as long as I set the java.rmi.server.codebase property, if I omit it, the server refuses to run with a ClassNotfoundException, saying it misses the Stub class. Well, even though I use JDK 1.5, I used rmic on my server object class to generate a stub and in order prevent dynamic downloading. From the RMI documentation it seems that this property would only be needed if one wants to use dynamic downloading.

Still it seems that the server application needs to have that property set. The problem would be to properly determine which value I have to set it to. First of all, it does not seem to work if I set it to a jar file, but only to a directory. Second, I do not want to set it to an absolute path which will definitely not run in the reviewer's environment.

Did anyone choose the RMI way and got a good solution for that ? Since I work with CORBA most of the time, I have not much experience with RMI. Any help would be appreciated.

Wei-ju
 
Proudly marching to the beat of a different kettle of fish... while reading this tiny ad
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic