hi,Mark: because i get the scjd exam ,so i must do some test code. i have no "package" expression . only: import java.rmi.*; import java.rmi.server; public class ProductImp1 extends UnicastRemoteObject implements Product{ ... ... } i have try run "rmic ProductImp1" in "c:\test" but show the same error!
Oh just to make sure you are compiling the class first, right? OK try this. Make a sub directory under the test directory called stanley. Make your class be in the stanley package
Then in your test directory run
Let's see what happens there. Mark
Ian B Anderson
Ranch Hand
Joined: Jun 26, 2001
Posts: 275
posted
0
Hello, The other thing to check is that . is in your classpath. E.g. rmic -classpath . packageName.ClassName or without packages rmic -classpath . ClassName Ian
hi,Mark and Anderson : thank you for your help .i tried it in many ways .This morning i get it at last . we must add the sentence as this in autoexec.bat set CLASSPATH=.;c:\jdk1.3\; after it ,it's OK now ! thank you again!