Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Jar File Invalid

843789May 24 2010 — edited May 26 2010
I have created a .jar file in eclipse, which when imported back into a new project it runs, only once.

Then it says the jar has no main method. Have to restart eclipse and actually go to the class with the main to run it.

If I run the jar through the terminal I get an error "invalid or corrupt jarfile"

Double clicking the jar file doesn't work either.

I have no idea what the error is.

any help appreciated.

Regards
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 23 2010
Added on May 24 2010
23 comments
696 views