Skip to main content



      Home
Home » Newcomers » Newcomers » The serializable class NotHelloWorldPanel does not delcare a static final serial
The serializable class NotHelloWorldPanel does not delcare a static final serial [message #147850] Tue, 11 April 2006 05:56 Go to next message
Eclipse UserFriend
Originally posted by: nickname.126.com

Hi,

I wrote a simple program, it works fine. But I got this message "The
serializable class NotHelloWorldPanel does not delcare a static final
serialVersionUID field of type long". What can I do? Thanks.
Re: The serializable class NotHelloWorldPanel does not delcare a static final se [message #148394 is a reply to message #147850] Tue, 11 April 2006 15:27 Go to previous messageGo to next message
Eclipse UserFriend
> I wrote a simple program, it works fine. But I got this message "The
> serializable class NotHelloWorldPanel does not delcare a static final
> serialVersionUID field of type long". What can I do? Thanks.

Something in NotHelloWorldPanel's inheritence hierarchy
implements the Serializable interface. The easiest thing
to do is place your cursor on the declaration of
NotHelloWorldPanel and type Ctrl-1 for some help
and pick what seems appropriate for your project.

-paul
Re: The serializable class NotHelloWorldPanel does not delcare a static final serial [message #149036 is a reply to message #147850] Mon, 17 April 2006 16:00 Go to previous message
Eclipse UserFriend
Dan wrote:
> Hi,
>
> I wrote a simple program, it works fine. But I got this message "The
> serializable class NotHelloWorldPanel does not delcare a static final
> serialVersionUID field of type long". What can I do? Thanks.
>

Add the following declaration immediately after the initial {

static final long serialVersionUID = 1234567;

The value can be anything you like.

Chris
Previous Topic:install / config eclipse plugins
Next Topic:Newcomer
Goto Forum:
  


Current Time: Sun Jul 13 17:17:54 EDT 2025

Powered by FUDForum. Page generated in 0.08248 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top