Zip/unzip API for both Windows/Linux

hello, there:
I wonder if it's possible that we can create a zip/unzip class that can package the files in Windows and unzip them in Linux?
Fact is, that I created a Swing application, which shows a tree of a certain folder. Upon request, the app also zip that folder(including it's subs) and upload it to a remote database as a SQL blob. Well, I want this app to work on both Windows/Linux, meaning when it runs on Linux, it should be able to download the package and unzip the package to its full extend.
But it looks like that the files zipped in one OS can't be easily unzipped to its original in another. Is it doable or not possible due to the very different nature of the file systems of different platform?
I used a open source code from this link, http://www.wakhok.ac.jp/~tatsuo/sen97/10shuu/UnZip.java.html
Will the zip package from jdk help (java.util.zip)? I haven't tried that one yet.
Thanks,
Sway

You don't have to use special libraries as the tools you need are all in the java.util package.
There is however an Apache Commons library for this though which you can find here
http://commons.apache.org/sandbox/compress/
Note that zip = archiving and compression where as gz or gzip on Linux is only compression and you would use tar to do the archiving (tar.gz), that's why there are two separate compression classes in the Java API.

Similar Messages

  • Storing servlets files in a tomcatserver for both windows and linux

    Hi,
    I want to know where to store the servlets files (ie) in which directory i need to put the servlets file in a tomcat server.
    I want to know where to the store the servlet files for both windows 98 and linux 8.0.
    Also in linux how do i configure the servlets files how to set the classpath for the servlet files.
    For eg in windows 98,
    i can set the classpath like this:-
    set classpath=%path%;c:/jakarta-tomact-4.1.24/common/lib/servlet.jar
    Where how it is done in linux machine how u will set the classpath for servlet.jar in linux.
    Pls. do provide the answer.It is Urgent.
    Thanx,
    m.ananthu

    Did you try reading the documentation that comes with Tomcat? I'm pretty sure it has the answers.

  • Need drivers for Photosmart D7560, and Scanjet 4370 for both Windows 7 32 bit and 64 bit

    I need drivers for my Photosmart D7560 Printer and Scanjet 4370 scanner, for both Windows 7 32 bit, and 64 bit.

    Hi, For the printer:    http://ftp.hp.com/pub/softlib/software11/COL30216/mp-75048-1/PS_SF_04_D7500_NonNet_Full_Win_WW_130_140.exe For the scaner (no available):    http://h20564.www2.hp.com/hpsc/swd/public/readIndex?sp4ts.oid=457534&swLangOid=8&swEnvOid=4063 Regards. 

  • SCUP - Deploy Updates for both Windows 7 and Windows 8.1 rules Detection

    Hi all,
    I encounter a little issue regarding the update deployment from SCUP.
    For example, I would like to deploy Firefox updates on both Windows 7 and Windows 8.1. Firefox Updates are deployed and installed on Windows 7 without any problem. But Nothing happen on Windows 8.1.
    I think my problem is on my Installable Rule I have created. As it's not possible to select Windows 8.1 as a condiftion (like Windows 7) I have created a WMI query.
    Before using a WMI query, I tried to use Major version and Minor version without success.
    Does anyone has already used this sort of scenario ?

    Shouldn't you do the following things (see also:
    http://technet.microsoft.com/en-us/library/hh134743.aspx):
    Add Windows Language is French to the top AND;
    Change the second AND to an OR;
    Add the WMI Query to the new OR (so it's at the same level as the
    Windows Version = Windows 7 SP1);
    Remove the last OR (as it's not being used anymore).
    My Blog: http://www.petervanderwoude.nl/
    Follow me on twitter: pvanderwoude

  • External hard drive for both windows and mac

    hello, all - just bought a western digital 500gb my book premium edition external hard drive. will be using for both pc and macbook, not necessarily to share files (though i may on occasion), but rather as a backup. been researching the discussion boards and concluded that i should use it as pre-formatted fat32. few questions...
    1) if i do use to share files, from what i understand i will be able to read windows files with my mac but i can't read mac files with windows (unless i have macdrive installed). is this correct?
    2) since mac can read/write to fat 32, is it necessary to partition the drives and keep the files separated? i talked to a "computer guy" earlier today and he said i should consider having two completely separate external hard drives as having files from two different operating systems on the same drive could cause major problems for both... i didn't really believe him.
    3) i have seen different posts stating using fat32 format for mac limits file size to 4gb. another post said 32gb. which is right? i have os is 10.4.7 if that makes a difference.
    thanks in advance for any insight.

    2 - i don't mind partitioning at all. but he strongly suggested not even partitioning but using two completely separate hard drives. yeah, the 500gb was a bit overkill, so if i can use it for both as opposed to one and buying an additional, i'd rather.
    2/3 - if i partition, is it best to divide it into ntfs and hfs+? or should i keep the pc portion fat32? if the mac portion is hfs+, can i store any size file? i have videos that are anywhere from 10-20gb, and i'd like to get them off my computer and into the external drive.
    thanks.

  • How to export for both windows and mac users

    I'm new to the video stuff, so i have a few questions. i am planning to post videos on my blog. I want to have them in a format that both windows and mac users can play. is this a possibility or will i have to export .wmv for windows and quicktime for mac? i realize that windows users can download quicktime, but i either want the video to be viewable in a format that can be read by all without having to download anything (might be too big a wish :o) ). if i can't do that, then i'd like to have 2 links - one for quicktime and one to the .wmv. in this case, how to i export a .wmv file? i don't see that option anywhere on the share menu? do i need to buy quicktime pro? that leads me to another questions - if i have imovie, do i need quicktime pro? so far i'm having a hard time figuring out what quicktime pro has that imovie doesn't....thanks in advance!

    I'm new to the video stuff, so i have a few questions. i am planning to post videos on my blog. I want to have them in a format that both windows and mac users can play. is this a possibility or will i have to export .wmv for windows and quicktime for mac? i realize that windows users can download quicktime, but i either want the video to be viewable in a format that can be read by all without having to download anything (might be too big a wish :o) ).
    Posting to YouTube and providing a URL link might be the most universal method of playback although quality may be on the weak side.
    if i can't do that, then i'd like to have 2 links - one for quicktime and one to the .wmv. in this case, how to i export a .wmv file?
    WMV is a proprietary compression format. You will either have to purchase the authorized QT components from Flip4Mac or purchase a separate open source converter application like Visual Hub.
    i don't see that option anywhere on the share menu?
    Any you won't even if you purchase and install the QT component -- iMovie '08 only exports to QT compression formats.
    do i need to buy quicktime pro?
    It wouldn't help. Getting QT Pro only unlocks editing and conversion features. It does not add any additional codecs which don't already have installed.
    if i have imovie, do i need quicktime pro? so far i'm having a hard time figuring out what quicktime pro has that imovie doesn't.
    As indicated above, QT Pro allows you to convert to/from any compression formats for which you have working import/export QT components. This can already be be done using GarageBand and iMovie. GarageBand allows you to access any installed QT import/export component while iMovie '08 restricts you to Apple QT components. In addition, QT Pro allows you to create player displays with multiple audio/video tracks, gives you ability to layer graphic elements (e.g, create watermarks, create pictures-within-pictures, etc,), allow the viewer to switch between alternate audio and/or video tracks, and may other things.
    ADDED: If you really want to see what QT Pro can do, check out QTKirk's examples on his DotMac account.
    Message was edited by: Jon Walker

  • Good Wireless Router for Both Windows and Mac

    Anyone know of an outstanding wireless router that's compatible with both Operating Systems (Windows/Mac)? Should I get an "n"? Will that work for both? Does the new Airport Extreme router fit that bill?
    Thanks,
    Henri

    If you can still find one, I'd get the old Airport Extreme (round snow). Right now, the new 802.11n is in the process of suffering growing pains with third party equipment.
    This is only my opinion. If you review this discussion topic area and read the posts you can make a decision.

  • C API  for JMS in LINUX

              Hi,
              I have developed an appication using JMSCAPI in windows. Now i have to migrate
              the code to linux C. pls help me in finding JMSCAPI for Linux .
              Thanx and Regards
              Venkat
              

    Another customer requested this on 11/14 in this
              newsgroup. There is no Linux port at the moment.
              I will make the person who is responsible aware of
              your request, and he will respond in the newsgroup.
              Tom, BEA
              Venkata Gupta wrote:
              > Hi,
              > I have developed an appication using JMSCAPI in windows. Now i have to migrate
              > the code to linux C. pls help me in finding JMSCAPI for Linux .
              >
              > Thanx and Regards
              > Venkat
              

  • How do we use SSO for both Windows AD and Trusted authentication?

    We want to have the majority of our users access the BO 4 BI Launchpad using SSO with Windows AD authentication.  We have set this up and it's working ok.  We also have a subset of external users and need to configure SSO with Trusted authentication for their Enterprise accounts.  Support says we can only have SSO for one authentication type.  I'm assuming we can work around this by installing a 2nd Tomcat instance on our Linux server.  Has anyone done this type of config successfully?  Any other ideas would be greatly appreciated.  Thanks!

    Hi Collins,
    BOE's CMS can be accessed from multiple application servers.
    Please have a look on this new article [here|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/00240702-8343-2f10-ed9a-85ece14c93db] .
    You may use this method for other application servers(not only NW) but just dont add the file "web-j2ee-engine.xml" as its not  needed.
    regarding sections 4.2.4 on the document, On one application server just set "authentication.default" property under the file BIlaunchpad.properties, to "secWinAD"(for win AD). and on the other set it to "secEnterprise".
    please report any problems you may encounter,
    thanks,
    Idan

  • If I use an SD card for both Windows 7 and Mac, is there any way to see the documents from the Mac sight while on the windows side?

    If I use an SD Card on both the windows 7 and Mac OS (using bootcamp), is there any way to see the data seen on the Mac OS side while using the Windows OS?

    Windows Aero style uses a different background image than Mac:
    Windows Aero:
    #nav-bar {
    background-image: linear-gradient(rgba(253,253,253,0.45), rgba(255,255,255,0));
    Mac:
    #nav-bar {
    background: url(chrome://browser/skin/Toolbar-background-noise.png),
    linear-gradient(hsl(0,0%,93%), hsl(0,0%,83%));
    I can't test hands on, but you might be able to clear that OSX "fog" using a rule such as:
    @namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
    #nav-bar, #PersonalToolbar {
    background-image: none !important;
    background-color: transparent !important;
    This could be applied using the Stylish extension or by creating/editing a userChrome.css file.

  • How can i format an external drive to be used for both windows and mac

    i recently bought a macbook pro and used bootcamo so as to be able to run win7 and mac. I now wish to have an external usb drive so as to backup and tranfer files between the two os's. How can I do this?         

    Firstly,
    There is a forum for MacBook Pro - not this. And for Boot Camp.
    You can:
    add Paragon HFS driver to Windows which works
    add Paragon NTFS for Mac OS X
    USB is of course slow and while people use it for backups and TimeMachine, that is one place where FW800, eSATA or USB3 would be better served.

  • Can I use Airport TimeCapsule's internal hard drive as a network-based backup solution for both windows and mac?

    Does the following scenario work??? :-
    A Windows PC is connected to Airport TimeCapsule (ATC) wifi.
    A Mac is connected to the ATC wifi.
    The Mac's Time Machine software is set up and automatically backs up to the internal HDD.
    The Mac can browse files on the internal HDD, and drag and drop files to and from.
    The PC can easily see the internal HDD as a device on the network. The PC can drag and drop files to the internal HDD. The PC can read and write to the files that the MAC has placed on it. The PC has some automated backup software installed, which recognises the ATC internal HDD as a backup storage device.

    You are right.. you cannot partition a TC.
    Nor can you use NTFS..
    And you can corrupt the TM backup but you can do that from Mac just as well.. the TC is better with one disk used for data or TM and another disk.. a USB plugged in for the other.
    Windows compatible means.. all names are short, no spaces and pure alphanumeric.
    You used to be able to set workgroup but Apple haven't bothered with that of late.. there is no upgrade to the airport utility for windows.. although one should be coming. Windows can have issues.. it was no problem on the older 5.6 utility and that still partly works but I have no idea if it will work on the AC model.

  • Wireless Printing for Both Windows and Mac

    I can now print wirelessly from my windows PC, but not from a secondary PC and a Mac Laptop. Help Please!

    What brand/model router?  What operating systems?  Did you get the latest software for your printer from the "Support & Driver" link at the top of this page?
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • Photoshop CS6 for both windows and mac?

    I have Photoshop CS6 for windows on an upgrade disk.  Now considering a mac air notebook to replace my old pc laptop as second machine.  Could I use the program  on this on my existing licence?   Would I be able to download the program? Also, what's the minimum system spec advisable for smooth running on a mac?   Hoping a helpful Adobe person can answer these questions easily.  Thanks

    Could I use the program  on this on my existing licence?
    No. And that takes care of your otehr questions - it's a moot point. Standalone permanent licenses are platform specific and there's no way around that. Only Creative Cloud allows cross-platform usage as do certain types of volume licenses, none of which is relevant to your situation.
    Mylenium

  • Java api for "diff" unix/linux program

    Hi
    Is there a Java api that provides the same functionality as the "diff" program in linux/unix.....any pointers/help..this program will return the diffrence of 2 text files..
    thanks..

    What solution did you finally use? With iTEXT, it seems that you have to have perfect xhtml...it doesn't look like you can't convert from HTML to pdf directly....

Maybe you are looking for

  • How to use of ffmpeg or jffmpeg with java

    I am creating an application in java to convert one video format to other. (eg. avi to wmv) . as JMF does not support all the video formats available today. I read on the net that I can use ffmpeg or jffmpeg together with jmf to process many video fo

  • Application Loader

    Hy there. By uploading my App with Application Loader, all steps are succsesfully throug in the Background activity menu, except the step "Authenticating with the iTunes Store...". This step i have tried several times for over 17hours, and my App fil

  • Officejet 6700 print booklet

    I am trying to print a Word document in booklet form.  It prints fine on a Ricoh printer.  But it won't print correctly on the HP OfficeJet 6700.  When I go into the Properties of the 6700 I click on the "booklet" box.  Also Print on both sides - Lon

  • Deploying static HTML files

    I would like to deploy an applet in Weblogic 92. Could you point me to the documentation to do achieve this. There is one html file which has the applet definition and the jars that it references...

  • Macros in LSMW

    Hi all, Do we use macros in the data conversions using LSMW. if yes could you please let me know how. regards, Kotireddy