Executable JAR - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Executable JAR

Iceman24Iceman24 Posts: 119Member
I've built a JAR file which functions up to the point of actually executing the thing.I get this error when I execute using java -jar .jar:
java.io.InvalidCLassException: javax.swing.JComponent; local class incompatible: stream classdesc serialVersionUID = -5353880800724033550, local class serialVersionUID = 7917968344860800289
and then the program quits.
I get the splash screen I set up to come up (JLabel inside an undecorated JFrame with a JProgressBar at the bottom)and then the error occurs. I shouldn't have to include the swing lib should I? Any ideas as to what causes this?


Sign In or Register to comment.