• 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
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Problem

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi..
After I compiled all the classes , ie the interface class,implementation, server and client, if I go for 'rmic implementation' class, it says that class not found.
I just started it and I didn't find any solution.

Thanks
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If your classes aren't in packages, simply go into the directory that contains the classfiles and try -


Where <;other_libs> holds a semicolon separated list of any other JARs or other directories of classes you may need (you may have none...). <impl_class> is the class name you want to build rmi stubs for. Remember *not* to put .class on the end! rmic knows to look for a .class file and if you put it in, it thinks you are looking for a class called "class" in the (probably non-existant)<impl_class> package.

If your code *is* using packages, it goes pretty much the same as above - only instead of using "-classpath .<;other_libs>" you will replace the "." with the path of the directory *directly above* the start of your package directory. For example, the class you want to create stubs for is located in "C:\projects\RMI_Stuff_1.3.3\build\com\me\server\ServerImpl.class". In this case you would set the classpath to "-classpath C:\projects\RMI_Stuff_1.3.3\build\<;other_libs>.

Hope this helps...
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic