How to extract a jar to a specified folder??

I want to extract a jar file with sun' Jar,
But how set the target folder in the Jar command Line
It is like this ??
Jar -xvf Test.jar -C d:\test\
But it can't work ! please help me !

Zac1234 wrote:
jar -xv experiment.jar
jar -xvf experiment.jar

Similar Messages

  • How to extract ZIP/JAR files?

    Hello,
    How can I extract zip/jar files ?
    Eric

    If you are talking java, you can use the java.util.zip classes.
    ZipFile, ZipEntry, ZipInputStream, ZipOutputStream
    You can find lots of examples through google:
    http://www.google.com/search?hl=en&q=java+zip+code+example&meta=Cheers,
    evnafets

  • How to extract a jar archive.

    I am in Windows XP SP3,
    using the command line to try and extract a jar archive, to it's present directory:
    jar -xv experiment.jarThe computer just sits there for ages, apparently caught in a loop,
    issuing no output.
    How may I meet with more success?

    Zac1234 wrote:
    jar -xv experiment.jar
    jar -xvf experiment.jar

  • Re:How to save an uploaded file in specified folder

    Hi all,
    I am using Jdev 11.1.1.7.0
    i created one form in the page.i created attachments by using inputfile option in component palette.when i run the page it is working.the file is successfully uploaded.but my intension is i want to save the uploaded file in specified location for the particular person.so how can i save this file.can anyone help me out please.
    Thanks,
    G.Shilpa.

    Hi Timo,
    Thanks for the reply.my scenario is i have created one table and one form.i entered some data in it.i used inputfile and save button for attachments.it is working.bt it wont be saved.when i click the person and then upload a file then the file will be stored some particular location for the particular person.means when i reload this page again i click the person it want to show the person how many pages uploaded.i created one bean class in save button and inputfile.my code is
    public class FileUpload {
        private List<UploadedFile> uploadedFile;
        public FileUpload() {
            super();
        public void setUploadedFile(List<UploadedFile> uploadedFile) {
            this.uploadedFile = uploadedFile;
        public List<UploadedFile> getUploadedFile() {
            return uploadedFile;
        public void saveUploadedFiles(ActionEvent actionEvent) {
            // Add event code here...
            List<UploadedFile> files = this.getUploadedFile();
            if (files != null) {
                for (int i = 0; i < files.size(); i++) {
                    System.out.println(files.get(i).getFilename());
    if anything goes wrong can u please provide the code.
    Thanks,
    G.Shilpa.

  • How to disable application jar creation in tmp folder

    Hi
    I am deploying an application on clustered server.
    Everytime i deploy application a jar(for the application) is getting created in admin server's tmp folder in the folder WLTEMP_APP_DOWNLOADS/<application_name>/<application_name.jar>
    I am deploying application in exploded format and one of its functionality is to generate csv files.
    As Weblogic seems to be referring the application_name.jar I get a 404 error whenever csv files are accessed in UI.
    Could somebody please suggest the settings to disable the application jar creation.

    The issue was with weblogic caching.
    The server was creating a jar of the application in a tmp folder for every deployment .
    Due to this any new file generated within deployment path was not being identified.
    Disabling caching on admin server resolved the issue.

  • How to extract a .tar.gz file in IBM AIX 6.1

    we are in R12.1.3 on IBM AIX 6.1,we took the cold backup of prod Instance using the below command
    nohup tar cvf - /u01/oracle/prod/db | gzip > /u01/backup/backup_prod/prod_db.tar.gz &
    nohup tar cvf - /u01/oracle/prod/apps | gzip > /u01/backup/backup_prod_8035/prod_apps.tar.gz &
    we tried to extrac the above 2 .tar.gz files on the same server using below commands, they are extracting on source location i.e /u01/oracle/prod/db.so original files getting updated with old one
    cd /u01/backup/backup_prod_8035
    $gunzip < prod_apps.tar.gz | tar xvf -
    $gunzip < prod_db.tar.gz | tar xvf -
    Please let me know how to extract this files in the same folder with out affecting the original files
    Thanks in advance

    Helios,
    Thank you very much for your reply
    Is it possible to do both gzip and tar -xvf in single commnd because we don't have that much space on the server
    when we execute gzip -d /u01/backup/backup_prod/prod_db.tar.gz it will create file as prod_db.tar again we need to execute
    tar -xvf /u01/backup/backup_prod/prod_db.tar
    In the above command either we need to give . to untar the files in the same directory same like Linux.
    With out . in aix the untar files are over riding on source location i.e /u01/erp/prod
    Please advice

  • How to extract JAR file in particular directory

    Hi,
    I am extracting a JAR file(A.jar) in a Makefile
    Now the path of the Makefile is say /home/developer/
    The location of the JAR file is in /opt/tools/mk/A.jar
    I am extracting the jar file as:
    jar xvf /opt/tools/mk/A.jar
    This creates a directory named "A" under /home/developer, since the location of the Makefile is at /home/developer.
    Question) How do I unjar /opt/tools/mk/A.jar under /opt/tools/mk/ itself, irrespective of the location of the Makefile?
    thanks

    jar -?
    Usage: jar {ctxu}[vfm0Mi] [jar-file] [manifest-file] [-C dir] files ...
    Options:
        -c  create new archive
        -t  list table of contents for archive
        -x  extract named (or all) files from archive
        -u  update existing archive
        -v  generate verbose output on standard output
        -f  specify archive file name
        -m  include manifest information from specified manifest file
        -0  store only; use no ZIP compression
        -M  do not create a manifest file for the entries
        -i  generate index information for the specified jar files
        -C  change to the specified directory and include the following fileI'd say you may want to try the -C option

  • How to extract html file and folder from jar file

    Hi all ,
    I should to submit my project tomorrow . plz help me .
    In my project jar file I have html page that should run when I use the program, I can't extract it . Also it have folder that contain some files that My program should use it . I dont know how to use it from jar file or how to extract it . plz help me.
    If you could I need java could for that.
    Thanks alot.

    Hi all ,
    I should to submit my project tomorrow . plz help me .
    In my project jar file I have html page that should run when I use the program, I can't extract it . Also it have folder that contain some files that My program should use it . I dont know how to use it from jar file or how to extract it . plz help me.
    If you could I need java could for that.
    Thanks alot.

  • How to extract the contents of the Jar file?

    Hello,
    Can anyone tell me how to extract the contents of the Jar file?
    An example will be highly appreciated.
    Thanks.

    From command line, or from within a java application?
    Kaj
    Btw. Why do you need to do it. You do know that you can add jars to the classpath and read resources from them without extracting the file?

  • How can I extract jar entry which is folder and it's contents

    Hi
    How can I extract jar entry which is folder and its contents to another folder.
    I'm pretty sure I've tried almost everything.
    Thanks in advance.
    Edited by: MuSaKa on Sep 11, 2008 3:17 AM

    like this ?

  • Need help emergency! In my Vision Application, how to extract the specified curve settings from the geometric template which was generated by NI Template editor??

    I have a machine vision application, in which the geometric pattern match technique was used to find the target in variant images.
    as we know ,we have to make a geometric template by the NI Template editor, in the editor we can adjust the parameters of specified curve settings to get the wanted curves, and we can draw the custom area to ignore during the match. then we save the template for latter using in our vision application.
    Now my question is coming. when I program my application for the geometric match. I have to specified the Curve Parameters for the input of IMAQ Advanced Setup Learn Pattern 2, obviously, I have to set this parameter same as the one in the template, but I don't know how to extract it from the geometric template. I have tried all methods I can, for example, read custom data, IMAQ Get Geometric Template Features(this is just for the feature based? then is there a same VI for the edge based?) , even to anasys the PNG file formats!!!! But I can not read the geometric template info by myself!
    It is too illogical that we have to adjust the CURVE PARAMETERS manually again for the " IMAQ Advanced Setup Learn Pattern 2"after I have already done that in the NI Template editor !!!!
    Solved!
    Go to Solution.

    Hello,
    why do you need to specify the curve parameters again, if you have already built a template using the template editor?You do not need to use "IMAQ Advanced Setup Learn Geometric Pattern 2 VI" to find the matches (see the attached example).
    you can wire the control to the "curve parameters" to the "IMAQ Setup Match Geometric Pattern 2 VI", but the values are not used if you wire a true boolean to the "use learn curve parameters" node (it is like this by default). To prove this, i have attached a small program, with pre-created template (using the template editor) for geometric matching. The template and three test images are also included.
    Try changing the curve parameters with the "use learn curve parameters" enabled, and you will see that the matching score remains the same. Then disable the boolean control and try changing the curve parameters.
    Also take a look at the detailed help for "IMAQ Setup Match Geometric Pattern 2 VI", specifically the "Use Learn Curve Parameters".
    I hope this helps.
    Best regards,
    K
    https://decibel.ni.com/content/blogs/kl3m3n
    "Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
    Attachments:
    geometric_matching_LV2010.zip ‏3154 KB

  • How to make a jar file downloadable with IE

    hello,
    I just bought a website:
    http://www.frozenfountain.net/
    and I put a jar file on it called Logo.jar
    Using Mozilla, the jar file downloads as expected, but with Internet Explorer, it tries to download it as .zip file.
    How do I get it to download as a .jar file with IE?
    thanks

    Just post a link to the Jar. Mozilla will download
    it as a jar. Windows will download it as a zip.
    Only one link. No problem, really. ;-)There is a problem. People who arent as good with computers as you are won't know how to run the jar file after downloading with IE.
    At school, I told someone to download the file, which they did with IE. It downloaded to desktop as a zip. They extracted and were left with a bunch of .class files.
    On a sidenote, how do you draw text with a gradient?

  • Easy way to extract a jar file?

    I'm looking for an easy way to extract a jar file from with in a java program. I would also like to specify what directory it goes into. I can't seem to find anything on this.

    >
    ...I can't seem to find anything on this.>Where were you looking, under the bed and in the closet? Try [search: extract jar Java|http://lmgtfy.com/?q=extract+jar+Java].
    As to specifying a directory, offer the end user a JFileChooser set to browse directories only.

  • Can anybody tell me how to extract sales value and cost value for an materi

    dear all,
    Can anybody tell me how to extract sales value and cost value for an material sold .
    All the values of cost value and sale values are getting  stored in bseg-wrbtr field .
    How to identify them uniquely.
    Or there is another way to find the sale and cost values.
    Regards
    Mave

    Hi Mave!
    Normally there is no condition change, when something is sold.
    But sales price depends on sales conditions (not only price, but also surcharges, discounts, taxes - if customized).
    Nevertheless, after selling you have a invoice document, where correct values <i>should</i> be stored (see VBRP fields mentioned above). If here is a problem, then customizing of price determination is in question, not a programming of user-exits with MARD selection for costs (or some other tries to get a price).
    When you specify your requirements more in detail, you might get better answers - but currently only general hints are possible ('see in invioce / G/L accounts').
    Regards,
    Christian

  • How to extract SDA file..........

    Hi All
        how do we extract SDA files.......
        we started adapter development by testing sample code in 'sample_ra.jar'  file,  available in sample_ra.sda, and deployed on XI server. now we want to see all jar files available in 'sample_ra.sda'.
    if any one already gone through adapter development have any idea, how to extract SDA file, help me out Pls .......... very urgent.
    Regards
    Rajesh

    HI,
    In general SDA files are to be deployed into Server using SDM.
    see the below link , how to deploy
    http://help.sap.com/saphelp_webas630/helpdata/en/05/4fac3e00c8b014e10000000a114084/content.htm
    Also
    you can unzip the file with WinZip or WinRar edit the xml configuration file and zip it back together (in ZIP format and not RAR!).
    Also
    how to deploy ear files from command line
    Tools like zipgenius http://www.zipgenius.it/intweb/features.htm#Innovazione, Private encryptor http://www.filesweb.com/private-encryptor/ and securefile http://www.devsolutions.net/htmlpages/securefile.html should help you further.
    Regards
    Chilla

Maybe you are looking for