• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to extract

 
shabbir zakir
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic