Jump to content
  • Advertisement
Sign in to follow this  
loachman

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.

If you intended to correct an error in the post then please contact us.

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 this post


Link to post
Share on other sites
Advertisement
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 this post


Link to post
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

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!