Well i decided to create RMI but faced with one problem. i put CLASSPATH= (to my jdk) then i decided to make Stub with rmic. I wrote: 1. rmic -classpath "D:\workspace\Rmi.example\bin\rmi\app" AddServer -d D:\workspace
where i got such message: error: File D:\workspace\Rmi.example\bin\rmi\app\AddServer.class does not contai n type AddServer as expected, but type rmi.app.AddServer. Please remove the file , or make sure it appears in the correct subdirectory of the class path. error: Class AddServer not found. 2 errors
You're supposed to run rmic from the base directory where your package starts. For example:
rmic -classpath "D:\workspace\Rmi.example\bin\" rmi.app.AddServer -d D:\workspace