i have a Java application made using NetBeans and i have been trying to serialize an object in the main jframe but it's not working can somebody please help me figure out the problem
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
i have a Java application made using NetBeans and i have been trying to serialize an object in the main jframe but it's not working can somebody please help me figure out the problem
Wow, could you please hand us some more information, what object are you trying to serialize and how are you doing it?
// Json
Hi,
I have like 30 classes in the application. The main superclass is business then some classes are derived from business and then some others are derived from the ones derived from business and so on. I wanna save the business object every time i stop the application and load it every time i run it so i have used objectinputstream and objectoutstream to do that (i have done that in the main jframe of the application, which has the main class).
but the problem is that when i run the application an exception is thrown saying that Business.order.masterordercatalog is not serializable
so do all the classes in the application need to implement Serializable in order to save the business object?
Thanks you for showing interest in this thread.