> Hi everyone,
>
[quoted text clipped - 40 lines]
>
> Babz
OPTION 1 is the correct way to do things. Duplicating class files is not the way
to go. OPTION 2 has created two .class files for the same .java source file,
and each of them has a different UID.
However, you can make it work if you define a serialVersionUID for each class
that you wish to serialize. In fact Eclipse now warns you if you don't do this.
Just add the following at the start of each class which will be serialized:
private static final long serialVersionUID = <largenumber>L;
where <largenumber> is an arbitrary integer which is unique to each class. You
should do this for *every* class which is serialized, and that means classes
contained in other classes, including anonymous inner classes.

Signature
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555
babz - 16 Oct 2006 05:44 GMT
Thnks Nigel. It works for me :)
> > Hi everyone,
> >
[quoted text clipped - 61 lines]
> E-mail : nmw@ion.le.ac.uk
> Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555