passing objects between projects

I have created two projects in netbeans, a server and a client. in the client i have an clientObject.java which holds input information from the user. I have put the client.jar file in the server library, but when running the server and then starting the client. it gives me a noClassDefNotFoundError. here is my code on the server side for getting the incoming object

import client.patientObject;

...

declaration

client.patientObject patient =new client.patientObject();

and then where I receive the object I have it as so

receiving

patient = (client.patientObject)objIn.readObject();

I think that the object is being sent correctly because it is getting there and throwing that error, telling me that client.patientObject cannot be found.

Any help will be appreciated.

[900 byte] By [developprogramsa] at [2007-11-26 18:50:01]
# 1
NoClassDefNotFoundError on what? Provide the full error message.
kajbja at 2007-7-9 6:24:03 > top of Java-index,Java Essentials,Java Programming...
# 2
When objects of a class are passed by serialization the class involved needs to be on the classpath of both sender and receiver. The serialized stream only contains the name of the class and the data for the instance - not the definition of the class itself.
malcolmmca at 2007-7-9 6:24:03 > top of Java-index,Java Essentials,Java Programming...