Did you write the "Player" class?
If so, you need to make it Serializable.
Do you know what that means?
public class Player { } // This class is not serializable
public class Player implements Serializable { } // This class is serializable
(Of course, if Player is Serializable, then the next thing you have to do
is to make sure every nontransient field in Player is also serializable...)
> They are Players..if they are not serializable..how
> can I work between server-client with these objects?
make them serializable! all serializable means really is "can be broken down into data that can be described in terms of primitives", more or less. all that needs to be true is that all the instance variables of your class are either serializable themselves, or marked as transient. if you post the Player class, we can see what is and isn't serializable about it
don't fall into the trap of thinking that anything implementing Serializable is actually serializable. implementing that "interface" is only a promise to other classes, a promise it's easy to break
javax.media.Player is just a controller that allows users to play/stop/rewind.
You mentioned you want to send this to another computer (between server-and-client you said).
That won't work.
Even if you could transport this controller object to another computer,
that other computer won't be able to use it to control the media file.
Serialization is not the answer. What are you really trying to do?