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

How Do I get the CodeKitchen Samples Out of the Jar File?

 
David Ausman
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to get some of the code samples from a Jar file for the book Head First Java but I can't open them because it says it is missing a manifest.

I am using this command: java -jar codeKitchensTiger.jar

The file is located here:

http://www.wickedlysmart.com/HeadFirst/HeadFirstJava/HeadFirstJavaIndex.html

Am I using the right command?

Thank you.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24204
34
Chrome Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's the correct command to run the jar file as an application, but it sounds like it's not an application, but merely an archive of files. The command to unpack such an archive would be

jar xf codeKitchensTiger.jar

The "jar" application is in the JDK, along with "java" and "javac".
 
Ryan Beckett
Ranch Hand
Posts: 192
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Open the jar file in WinRar.
 
David Ausman
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah! Gracias!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic