aspose file tools*
The moose likes Beginning Java and the fly likes jar file opening error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "jar file opening error" Watch "jar file opening error" New topic
Author

jar file opening error

vasu maj
Ranch Hand

Joined: Jul 12, 2001
Posts: 395
When I tried to open a jar file using winzip I am getting this error :

failed to load Main-class manifest attribute from blablah.jar file.

It is happening all the jar files that I tried to open.

Thanks,

Vasu


What a wonderful world!
Scott Dunbar
Ranch Hand

Joined: Sep 23, 2004
Posts: 245
It sounds like it is trying to execute the jar, not open it. Basically it is telling you that there is no Main-Class: declaration in the META-INF/MANIFEST.MF file within your Jar file. This is correct if the jar is not meant to be executed.

Windows is not my native tongue so I'm not sure how to change it but you want WinZip to open the file not run it.


<a href="http://forums.hotjoe.com/forums/list.page" target="_blank" rel="nofollow">Java forums using Java software</a> - Come and help get them started.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: jar file opening error
 
Similar Threads
Jar File
JDBC Drive Issue
How Do I get the CodeKitchen Samples Out of the Jar File?
Problem compiling java class
jar files no longer open - desperate