File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jar file opening error

 
vasu maj
Ranch Hand
Posts: 396
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Scott Dunbar
Ranch Hand
Posts: 245
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic