error: serializable class does not declare a static final serialVersionUID field of type

I download some open source software, and now I'm try to open it in Ecplise. However, I get the following type of error 92 times. The only thing that is different about these error messages is the name of the class they apply to:

typical error message:
The serializable class CrawlHost does not declare a static final serialVersionUID field of type long

corresponding line:
public class CrawlHost implements Serializable {

Is the need for declaring a field name serialVersionUID specific to my version (1.5) of Java? Or, please tell me what you think this error message might mean.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Sun releases a program "serialver" to generate code for inclusion, which you run on your class in question (with the class in the classpath).
AFAIK, serialVersionUID is not mandatory, and if not provided will be added by the compiler (but in a broken fashion, in that each compile can result in a different one, even if the code is 100% identical!) - Is this a compile error with Java 1.5, or a warning?
serialVersionUID is not mandatory, but highly recomended.
It's nothing to do with your JDK, it's a new compiler style check introduced in Eclipse 3.1.  If it really annoys you, you can  diable this check (which is Enabled by default) by going to:

Preferences (on the menu) --> Java (on the tree-chart) --> Compiler (under Java) --> Style (tab) and changing the"Serializable class without serialVersionUID" drop down to "Ignore" instead of "Warning".


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
bobwood2000Author Commented:
Problem solved! Thank you.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.