• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Brandi Love
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Aha, I see. Just not used to Eclipse, just started using it. Thanks for the assistance!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic