File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes how to extract Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "how to extract" Watch "how to extract" New topic
Author

how to extract

shabbir zakir
Ranch Hand

Joined: Nov 12, 2000
Posts: 183
Hi everybody!

how to extract the API class files from a jar file.
When we download the API of servlet it comes in a jar file. I don't know how to extract it and install it. Thanks in advance.
David Freels
Ranch Hand

Joined: Feb 01, 2001
Posts: 102
To extract all files in a jar, use this command jar xvf jarname.jar.
Use jar -help for more options.
David
shabbir zakir
Ranch Hand

Joined: Nov 12, 2000
Posts: 183
tahnks David.
but when i use to extract the servlet.jar with the above option it is giving me error that
java.io.FileNotFoundException(Access denied).
how to solve this error.
babukumar
Greenhorn

Joined: Apr 18, 2001
Posts: 18
hi
just use winzip to unzip a jar file if u dont know how to unzip using jar command prompt and options.
naren.
shabbir zakir
Ranch Hand

Joined: Nov 12, 2000
Posts: 183
HI NAREN!

THANKS FOR YOUR REPLY. BUT ACCORDING TO MY KNOWLEDGE WINZIP IS USED TO UNZIP A FILE NOT A JAR FILE.
David Freels
Ranch Hand

Joined: Feb 01, 2001
Posts: 102
Originally posted by shabbir zakir:
HI NAREN!

THANKS FOR YOUR REPLY. BUT ACCORDING TO MY KNOWLEDGE WINZIP IS USED TO UNZIP A FILE NOT A JAR FILE.

Winzip can unzip jar files. A jar file is just a mutant hybrid between a tar file and a zip file. Winzip can also open tar files.
David
Sun Certified Programmer for the Java2 Platform
Phil Hanna
Ranch Hand

Joined: Apr 05, 2001
Posts: 118
You don't need to unzip servlet.jar to use the class files it contains. The class path just needs "servlet.jar" in it.
------------------
Phil Hanna
Author of :
JSP: The Complete Reference
Instant Java Servlets


Phil Hanna<BR>Sun Certified Programmer for the Java 2 Platform<BR>Author of :<BR><A HREF="http://www.amazon.com/exec/obidos/ASIN/0072127686/electricporkchop/107-3548162-1137317" TARGET=_blank rel="nofollow">JSP: The Complete Reference</A><BR><A HREF="http://www.amazon.com/exec/obidos/ASIN/0072124253/electricporkchop/107-3548162-1137317" TARGET=_blank rel="nofollow">Instant Java Servlets</A>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to extract