Search code examples
javarmi

RMI, rmic command can'be found and run


in CMD, im trying to input rmic, but it is error and i am in the right path. I have the stub class too.

C:\Users\Tristan\Documents\Verteilte System\Übung_3\RMIServer\RMIServer\bin>ls
MessageInterface.class    MessageServiceImpl_Stub.class
MessageServiceImpl.class  Server.class

C:\Users\Tristan\Documents\Verteilte System\Übung_3\RMIServer\RMIServer\bin>rmic
 MessageServiceImpl
Der Befehl "rmic" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.

C:\Users\Tristan\Documents\Verteilte System\Übung_3\RMIServer\RMIServer\bin>

Solution

  • Looks like rmic is not on the PATH on your Windows installation. In my JDK 1.8 installation rmic can be found inside the bin directory.

    Here is a link to the Oracle Java Docs for setting PATH.