TAR.GZ Files

Please take a look at this thread:
[http://forum.java.sun.com/thread.jspa?threadID=5312674&tstart=30]
Thanks.
Edited by: S.A.J on Jul 10, 2008 3:53 PM

S.A.J wrote:
Please take a look at this thread:
http://forum.java.sun.com/thread.jspa?threadID=5312674&tstart=30
Thanks.Please don't clutter up the forum with new threads to bump your old ones. If you have more information or detail, just add it to the original thread. If you're not getting answers, it could be that nobody is motivated yet enough to answer.
~

Similar Messages

  • Where is the xsqlservlet_v9****.tar.gz file?

    I'm looking to install XSQL Servlet support on Oracle 8.1.7.
    I've just downloaded the latest XDK for Java, since technet
    states the XSQL Servlet components are included in it. After
    uncompressing the download and reviewing the included
    documentation, I expected to find a xsqlserlvet_v9_0_1_0.tar.gz
    file included somewhere in the directory structure. Nope, not
    there...so either:
    (1). The included docs are wrong/outdated - I'm looking
    at "Downloading and Installing the XSQL Servlet".
    (2). My expectation is wrong OR missing an important step.
    (3). I've downloaded the wrong file.
    Any ideas? Thanks.

    Another observation on the release notes included with the
    download...
    In reviewing the section "Software Included in the XSQL Servlet
    Distribution" of the "Oracle XSQL Pages and the XSQL Servlet"
    Release Notes, it mentions the following files:
    .\xsql\lib\xmlparserv2.jar
    .\xsql\lib\xsu12.jar
    .\xsql\lib\classes12.jar
    .\xsql\lib\sax2.jar
    I don't see the .\xsql\lib directory structure in what I
    downloaded??? I see xmlparserv2 and xsu12 in the ./lib
    directory, but classes12 and sax2 are no where to be found.
    I realize I can download classes12 and sax2 from elsewhere, but
    I still have this strange feeling that I'm missing something
    here...

  • Jar File for uncompress *.tar.Z-File

    hello,
    i'm locking for a jar -file to uncompress *.tar.Z files but i cant't found souch a jar file.
    do you know where i can download a jar-file wich suppose to extract a *.Z-Archiv? You do you know how i can extract a *.tar.Z-Archiv?
    Torsten

    hello,
    i'm locking for a jar -file to uncompress *.tar.Z files but i cant't found souch a jar file.
    do you know where i can download a jar-file wich suppose to extract a *.Z-Archiv? You do you know how i can extract a *.tar.Z-Archiv?
    Torsten

  • How to un tar required file?

    Hello All,
    I used TAR backup as below.
    tar -cvf test01.tar /uo1/oracle/bin/java
    its created testo1.tar file.
    Now i wanted to untar or recovery only one file instaed of whole tar file.
    for e.g: i wanted to recovery only file under bin folder callled config.
    how to un tar file?
    Any help will be appreciated. Thanks
    D

    You can look inside the tar using the 't' command:
    tar tvf file.tar And you can untar only one file with:
    frits@gateway:~/download$ mkdir t
    frits@gateway:~/download$ cd t
    frits@gateway:~/download/t$ touch a
    frits@gateway:~/download/t$ touch b
    frits@gateway:~/download/t$ tar czf ab.tgz *
    frits@gateway:~/download/t$ ls
    a  ab.tgz  b
    frits@gateway:~/download/t$ tar tzf ab.tgz
    a
    b
    frits@gateway:~/download/t$ rm a
    frits@gateway:~/download/t$ ls
    ab.tgz  b
    frits@gateway:~/download/t$ tar xzf ab.tgz a
    frits@gateway:~/download/t$ ls
    a  ab.tgz  b
    frits@gateway:~/download/t$

  • Extract A tar.gz file

    Ok guys,
    I have a program that extracts the contents of a tar.gz file. Right now it does extract one of the files and then throws an error:
    com.ice.tar.InvalidHeaderException: bad header in block 9 record 10, header magi
    c is not 'ustar' or unix-style zeros, it is '1141115144674854', or (dec) 114, 11
    1, 51, 44, 67, 48, 54
            at com.ice.tar.TarInputStream.getNextEntry(Unknown Source)
            at Extract_TAR_GZ_FILE.untar(Extract_TAR_GZ_FILE.java:37)
            at Extract_TAR_GZ_FILE.run(Extract_TAR_GZ_FILE.java:55)
            at Extract_TAR_GZ_FILE.main(Extract_TAR_GZ_FILE.java:67)
    bad header in block 9 record 10, header magic is not 'ustar' or unix-style zeros
    , it is '1141115144674854', or (dec) 114, 111, 51, 44, 67, 48, 54 The class that extracts the files:
    import java.io.*;
    import com.ice.tar.*;
    import javax.activation.*;
    import java.util.zip.GZIPInputStream;
    public class Extract_TAR_GZ_FILE {
         public static InputStream getInputStream(String tarFileName) throws Exception{
          if(tarFileName.substring(tarFileName.lastIndexOf(".") + 1, tarFileName.lastIndexOf(".") + 3).equalsIgnoreCase("gz")){
             System.out.println("Creating an GZIPInputStream for the file");
             return new GZIPInputStream(new FileInputStream(new File(tarFileName)));
          }else{
             System.out.println("Creating an InputStream for the file");
             return new FileInputStream(new File(tarFileName));
         private static void untar(InputStream in, String untarDir) throws IOException {
           System.out.println("Reading TarInputStream... (using classes from http://www.trustice.com/java/tar/)");
          TarInputStream tin = new TarInputStream(in);
          TarEntry tarEntry = tin.getNextEntry();
          if(new File(untarDir).exists()){
               while (tarEntry != null){
                  File destPath = new File(untarDir + File.separatorChar + tarEntry.getName());
                  System.out.println("Processing " + destPath.getAbsoluteFile());
                  if(!tarEntry.isDirectory()){
                     FileOutputStream fout = new FileOutputStream(destPath);
                     tin.copyEntryContents(fout);
                     fout.close();
                  }else{
                     destPath.mkdir();
                  tarEntry = tin.getNextEntry();
               tin.close();
          }else{
             System.out.println("That destination directory doesn't exist! " + untarDir);
         private void run(){
              try {               
                   String strSourceFile = "G:/source/BROKERH_20080303_A2008_S0039.TAR.GZ";
                   String strDest = "G:/source/Extracted Files";
                   InputStream in = getInputStream(strSourceFile);
                   untar(in, strDest);          
              }catch(Exception e) {
                   e.printStackTrace();          
                   System.out.println(e.getMessage());
         public static void main(String[] strArgs) throws IOException{
              new Extract_TAR_GZ_FILE().run();
    }The file I tested with can be found here:
    http://www.yourfilehost.com/media.php?cat=other&file=BROKERH_20080303_A2008_S0039.TAR.GZ
    Any help? Thanks a bunch.

    I fixed the problem. It was the ftp transfer of files program which wasn't set to BINARY mode. I edited that program and then rerun the above class and boom.. It worked.
    Thank you guys for responses.Great! Glad you got it working.
    ~

  • Downloading .tar.bz2 files ...

    ... why in **** does Safari add another .tar to .tar.bz2 files, and how do I stop it? Many thanks for the person who knows this one.
    -peter

    Hi,
    It's probably due to the mime encoding specified on the server side - Safari tends to believe what it's told.
    Assuming you're getting the file from wireshark.org, that download is reported as 'Content-Type: application/x-tar'
    (Compare that to the gzipped tar file there which is correctly defined as 'application/x-gzip')

  • Extracting tar.bz2 files.

    How can i extract tar.bz2 files?. zip, jar, tar can be extracted within java. But how tar.bz2?.

    Some tars have built-in knowledge of the bz2 (bunzip) compression format.
    Tar ("tape archive") is to package several files in one archive or to extract them. The archive files can be called "*.tar".

  • Client to unzip tar.gz file on remote webserver

    I'm not sure if this is the right place to post my question - sorry.
    I was wondering if there is a mac client program to assist in unzipping a tar.gz file on a remote web server.
    I know that it can be done using putty, but was hoping that there might be a "cleaner and more usable" solution.
    TIA
    -jP

    Mac has a build-in unzipper.
    Just double-click the file.
    In case itt does not expand, select the file and type Cmd-I.
    Then at +Open with,+ navigate to:
    /System/Library/CoreServices/
    and choose BOMArchiveHelper
    Click +Always open with this application+.
    There's more on the internet [unzip .gz osx|http://www.google.com/search?q=unzip%20.gz%20os%20x]

  • Extract multiple tar.gz files

    hey people
    I.ve got a problem here. I.ve got a folder with about 100 .tar.gz files, and I want to extract them all with 1 command. How do I do this? "tar zxvf *.tar.gz" doesn.t work...
    cheers

    find . -name "*.tar.gz" -exec tar xvzf {} ;

  • Automatically decompress *.tar.gz files to *.tar within Windows 2008 R2 Enterprise?

    Is it possible to have any and all *.tar.gz files that are dumped to a certain folder automatically decompressed/unzipped to *.tar in order to be processed by an sFTP job?  Thanks for any help you may be able to provide.

    Hi Señor SIEM,
    If you want to unzip files in powershell, this needs the thrid-party unzip application to run the powershell script, for more detailed information, please refer to this thread:
    powersell How to Unzip a file and copy it to specific location with 7zip?
    I hope this helps.

  • Handling tar.gz files

    Hi all,
    I am looking to get PHP up and running on my Mac I found the PHP modules on http://www.entropy.ch/software/macosx/php/ which was linked directly from php.net.
    The tutorial for installation says NOT to use Stuffit but to use BOMArchiveHelper instead to unpack the installation files.
    I have clicked "get info" on my php-5.2.1.tar.gz file and chose BOMArchiveHelper to open the file.
    Problem is when I double click the file a second archive is created, it is compressing again instead of unpacking!
    Any help with this will be greatly appreciated. A second option could be if you can point out a tutorial for correctly handling any compressed file from the command line.
    Thanks in advance.
    Juan

    Juan:
    Try this. Create a new folder in your desktop (let's say you called it PHP) and put your archive in there. Then open the terminal (in Utilities) and change directories to the new folder:
    cd ~/Desktop/PHP
    Then, extract the archive with
    tar -xzvf php-5.2.1.tar.gz
    That should decompress and unarchive the contents of the "tarball" into the PHP directory. We created the PHP directory only to prevent a potential large number of files loose in your desktop.
    Good luck,
    Juan-Pablo

  • 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

  • Automator workflow to TAR multiple files in a single directory into multiple TAR archives, in succession?

    Good afternoon,
    I have set up an automator service that TAR's a folder into an archive for me and it works quite nicely. Idealy however, I would like to be able to highlight several folders, right click and have automator tar each folder into it's own TAR archive, but do it one by one.
    Example:
    FOLDER 01
    FOLDER 02
    FOLDER 03
    Highlight all - Right Click - "TAR Folder" - Automator takes over at this point and TARs each one into:
    FOLDER 01.tar (Once complete moves onto:)
    FOLDER 02.tar (Once complete moves onto:)
    FOLDER 03.tar (Finished)
    I'm not 100% sure so I guess it would be a good time to verify, is there a problem with having the system try to TAR multiple folders at one time? If it is not a problem then I guess this discussion itself is pointless and I can simple right click on each folder and select "TAR Folder" and just wait until they're all finished. I would think that it would be ideal for the system to do each one individually and not try to do them all at one time.
    Any help would be appreciated.
    Thank you!!

    I don't think I have the following totally fleshed out but you probably can extrapolate on it.   This is a service which you can right click a set of folders  and it will tar the files within those selected folders with then file names "name xxx.tar", where name is the tar'ed file/folder and xxx is a count within the folder.
    I think that is what you originally specified so I am a bit confused by your script with the bit about Archive.tar. 
    Anyway here the basic idea:
    I ran the script directly with a folder argument just to see it indeed tar's up all the stuff inside, one tar per item.

  • Cannot untar a tar zip file

    I'm initially a linux user, now trying to chnage to solaris server. I found a problem untaring a tar zip file. There is no command 'gzip' or 'gunzip' in my solaris server. And for the tar command, there is no option '-z'. So, how can I untar and unzip a tar zip file?

    Hi ,
    What Solaris Version you are using? On www.sunfreeware.com site, once you choose correct operating system version you may see all utilities on right side at bottom. There are some in pkgadd format.
    e.g gzip 1.2.4-sol26-sparc-local is in pkgadd format for Solaris 2.6.
    You will find similar files for Sparc/Intel for all vesions.
    Download same.
    #pkgadd -d gzip 1.2.4-sol26-sparc-local
    This will install all you needed. I hope this will help you.
    Thanks,
    SdD

  • Uncompress a .tar.gz file from in java

    I need to unconpress a .tar.gz file from my Java program. Does anyone have any information on how I might go about this? I was not able to use the java.util.zip package since it does not recognize the file format.
    Do I have to use Runtime and run some external program. If so does anyone know of a freeware zip utility that works on the commandline and uncompresses a .tar.gz file.
    Thanks,
    Cog

    Try
    http://www.trustice.com/java/tar/
    Holger

  • How Unpacking a tar.gz file in unix?

    Please...help me....i know that it is no a unix forum...but i don't know how reach it....and i wish to unUnpacking a tar.gz file in unix that are some java programs....
    Thanks a lot...
    Mary

    Depends on which unix you are talking about.
    tar -zxf file works on Linux and a few other variants
    If your variant cannot handle the z (zip, compressed) flag then you have to do it in two steps
    gzip -d file
    then
    tar -xf file
    Note that after the first step the file will remove the .gz extension because it has been decompressed
    Cheers

Maybe you are looking for