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!

Invalid or COrrupt JAR file

805390Oct 14 2010 — edited Oct 14 2010
I have one jar file of java classfiles created in eclipse. Its working fine with eclipse after giving Run Configuration (main class).

But when I try to run jar file from command prompt its giving me error - ' Invalid or corrupt jar file'

I have edited Manifest.mf for adding Main-Class also.

I have also checked in Tools-->folder option-->File Types-->Selecting Jar-->Advanced-->Edit and given the correct path of javaw.exe like - "D:\SDP75\jdk\bin\javaw.exe" -jar "%1" %*. The same jdk used for compling the classes.

Please help me. I have done volumes of googling for this. This is very crtytical to me.

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 11 2010
Added on Oct 14 2010
2 comments
15,351 views