• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to extract

 
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic