wood burning stoves*
The moose likes Java in General and the fly likes The serializable class does not declare a static final... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "The serializable class does not declare a static final..." Watch "The serializable class does not declare a static final..." New topic
Author

The serializable class does not declare a static final...

Brandi Love
Ranch Hand

Joined: Sep 19, 2003
Posts: 133
I am working on code that is just supposed to come up with a menu screen, with a new game button that does nothing yet, as well as an exit button. I can't figure out what this error that eclipse is giving me means, anyone have any idea? Code and error below, the line in the code (the class declaration) that is bolded is that which is causing the error.

Code:


Error:
The serializable class ConnectFourMainScreen does not declare a static final serialVersionUID field
Tim LeMaster
Ranch Hand

Joined: Aug 31, 2006
Posts: 226
Its not a error its a warning. It versioning for serializable classes. Paste "serialVersionUID" into google and hit "I'm Feeling Lucky".

Like so I'm Feeling Lucky
Brandi Love
Ranch Hand

Joined: Sep 19, 2003
Posts: 133
Aha, I see. Just not used to Eclipse, just started using it. Thanks for the assistance!
 
GeeCON Prague 2014
 
subject: The serializable class does not declare a static final...