Search code examples
javarmi

RMI - stub creation with rmic


I am stuck with creating stubs for my simple RMI implementation. With command line, I am at directory, where I have my class files stored.

For me it is: C:\Users\John\Documents\NetBeansProjects\testServer\build\classes\RMI

RMI here is the package I have my files in. Now when I am in this folder, I tri to make stubs with rmic -v1.2 -keep CountingOnServer, but command line writes me, that class CountingOnServer not found. No matter what I am doing, still it is writing such a unbelivable mistake... do you know how to solve that?

Thx


Solution

  • As a guess, issue is that CountingOnServer is inside some package, so you should use full name like RMI.CountingOnServer. Don't forget to run rmic from the the class-path root which in your case seems to be build\classes directory.