Public Group

java applet serialVersionUID ??

This topic is 3730 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

Recommended Posts

I spent three hours trying to get an applet working. After I added this
	static final  long serialVersionUID = 42L;

It started working. What is that and what is it used for, This was not in my books from class. Thanks

Share on other sites
This would only be a problem if you implement Serializable interface. I really don't know why it would affect an applet.

Still, there are tools that will generate these IDs, setting them to random values is generally not recommended, since it can cause conflicts with class loader.

Share on other sites
Hmmm.

Yeah I guess that is a strange one. I just started using eclipse as my Development environment. Maybe it's possible I set something wrong when creating the project.

Right now the applet is using a few textFields,A button, and a slider.

Thanks
Loachman

• 38
• 12
• 10
• 10
• 9
• Forum Statistics

• Total Topics
631365
• Total Posts
2999585
×