How to share classes between server and client

Hi, everyone, I am new to RMI and I got some problems,

I can't get the client to download classes from the server. I have already set the codebase on the server by doing this(I am working on windows xp)

java -Djava.rmi.server.codebase=file:/e:/some/directory/

-Djava.rmi.server.hostname=myIP

If I provide the classes to the client, it works fine. But if I remove the supporting classes, such as the stub class, it throws a NoClassDefFoundError. I can't get it to download from the server.

Can anyone help me?

Thank you

[565 byte] By [yangkuan81a] at [2007-10-2 14:30:07]
# 1
is it supposed to?
Laszlo.a at 2007-7-13 12:51:41 > top of Java-index,Core,Core APIs...