RMIC class not found

Hi I am new to RMI
I have made 4 class
1)RMIDemo
2)RMIDemoImpl
3)RMIDemoServer
4)RMIDemoClient

The interface is RMIDemo and its implementation is RMIDemoImpl but when i try to run and genrate stub class it shows class not found using tool

rmic rmidemoapp.RMIDemoImpl

all 4 classes are under rmidemoapp folder.

any help or suggestion?

Hi this problem is solved I configure my Java Classpath and Stub is created