Cannot see zipped files in Windows Explorer

I used the code below to create a zip file. When I use Winzip to open a zip file named test.zip, I can see all the files (a.txt, b.class, etc.) that have been zipped. But, when I double-click on the test.zip in Windows Explorer (Windows XP Professional), I cannot see any of the zipped files.
Can someone give me some pointers?
import java.util.*;
import java.util.zip.*;
import java.io.*;
public class CreateZip
     public CreateZip()
     public void createZipFile(String[] all_array, String zipfilename)
          FileOutputStream pout; // declare a file output object
PrintStream p;
          String file_path = "D:\\Docs\\FedPlanner\\";
try
pout = new FileOutputStream(file_path + "FedPlanner_Zip_log.txt");
p = new PrintStream( pout );
               for (int i = 0; i < all_array.length; i++)
                    System.out.println("all_array = " + all_array);
                    p.println (all_array[i]);
p.close();
catch (Exception e)
System.err.println ("Error writing to file");
          byte[] buf = new byte[1024];
          try
               String outFilename = file_path + zipfilename;
          ZipOutputStream out = new ZipOutputStream(new FileOutputStream(outFilename));
               for (int i=0; i< all_array.length; i++) //
               FileInputStream in = new FileInputStream(file_path + all_array[i]);//filenames
               out.putNextEntry(new ZipEntry(file_path +all_array[i]));//filenames
               int len;
               while ((len = in.read(buf)) > 0)
               out.write(buf, 0, len);
               out.closeEntry();
               in.close();          
          out.close();
          catch (IOException e)
               e.printStackTrace();
     public static void main(String args[])
          for(int i=0; i < all_array.length; i++)
               System.out.println("x = " + all_array[i]);
          CreateZip create = new CreateZip();
          create.createZipFile(all_array);

I have never created a zip file using Java . But from what i know about Winzip and Window Explorer, here's my takes on it:
1. Winzip works with severals different compression algorithm 9including their own)
2. Winzip has the ability to display the content of the zip file (if the zip file happens to be one of the compression algorithm they supported....otherwise, it's highly unlikely, winzip can even open the file)
3. Window Explorer does not call Winzip to display the content of Winzip file. rather, Window Explorer has its own utility to look into the Winzip for files and display them. Note: they probably only do this for the popular compression algorith (such as Winzip .zip, probably .tar...but highly doubtful of the one that Java use to make a zip file).
So..it's probably Window Explorer does not supports display that compression algorithm (the one Java use) for a Winzip file.
Example...you created a new format for an image call .mypics
Window Explorer can display a thumb nail for .bmp, .jpeg, and quite a few other
You created an application to display the image. Now..in Window Explorer, when you click on the icon, the thumbnail of the pic is not display...this is because Window Explorer does not have a util to do thumbnail for that format.

Similar Messages

  • Can see my file in Windows explorer but not in DW

    There's gotta be an easy fix for this one...  I have a .jpg that I copied over into the file structure of my local site.  I know it's there, I can open it from Windows explorer.  But DW doesn't see it!  I tried just closing and relaunching DW and rebuilding the cache... what am I missing?  It just doesn't show up in the DW file list!
    Thanks,
    mathnun

    OOPS!  As you might have guessed I was looking in the wrong place... WAMP instead of XAMPP, I have a duplicate file system and saved my .jpgs to the old one. 

  • I cannot open a pdf file with aole-mail. I can open pdf files from windows explorer. I have associated pdf with adobe reader. My operating system is window

    I cannot open a pdf file with aol e-mail. I went to preferences in Adobe Reader but did not know what to enter for Incoming IMAP and outgoing SMTP. I can open pdf files from windows explorer as  I have associated .pdf files with adobe reader. My operating system is windows 7.
    When I try to open the pdf file within aol e-mail I get a message: 'Your security settings do not allow this file to be downloaded'.  I have not changed my security settings (Tools, Internet Options, security).

    Or http://helpx.adobe.com/acrobat/kb/pdf-browser-plugin-configuration.html

  • I just upgraded itunes. And now I cannot see my iPads or iPod in the left margin of itunes? But I can still see them in my Windows Explorer?

    I just upgraded itunes. And now I cannot see my iPads or iPod in the left margin of itunes? But I can still see them in my Windows Explorer?

    Hey there MattSK123,
    Thank you for your question. It sounds like you are unable to see either of your devices in the sidebar of iTunes after a recent update. A number of issues could cause this type of behaviour, and would recommend starting with the troubleshooting from the article named:
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/ts1538
    If the issue is not resolved, I would next re install iTunes from either of the following articles depending on the version of Windows you have:
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    http://support.apple.com/kb/ht1923
    Or
    Removing and Reinstalling iTunes and other software components for Windows XP
    http://support.apple.com/kb/ht1925
    Thank you for using Apple Support Communities.
    Take care,
    Sterling

  • I downloaded Acrobat Pro 9 to a new computer and once a download has been completed i cannot see a file, only a grey window

    I downloaded Acrobat Pro 9 to a new computer and once a download has been completed i cannot see a file, only a grey window

    The updates are available via this FTP site: ftp://ftp.adobe.com/pub/adobe/acrobat/win/9.x/
    You need to download and install them in order.

  • Bizarre error when trying to open .fla files in Windows Explorer

    "Windows cannot find '(path of the .fla file INCLUDING the filename)'. Make sure you typed the name correctly, and try again. To search for a file, click the Start button, and then click Search." error message given when I click on any .fla file in Windows Explorer to open it in Flash 8 Pro (as I've ALWAYS done before). Flash opens but no file is opened in it. If I click the fla file a second time THEN it opens in Flash (which is already opened from the first attempt.). This never happened before. I have 2 more laptops that work fine (as did THIS Win XP-SP3 pc until about a week ago), ALL with Flash 8 Pro (1 laptop w/XP-SP3 - just like the main PC with the new 'problem'), 1 laptop w/Vista Ultimate SP2. Even compared registry entries from XP laptop side-by-side - no differences at all. Everything is literally 'word-for-word'. Also compared FileMap.xml - no differences. Reinstalled Flash (no success) then out of frustration reinstalled XP with full disk format (and then everything else all over again - took 3 days) - still no success. Files open from the Flash 'File\Open' menu no problem - just not from Windows Explorer anymore. Nothing is different than before (when everything was ok - same installed programs, apps, updates, exact same 'set-up' as far as Windows drivers, system settings, prefs etc goes. VERY bizarre!

    As you know Flash 8 was a Macromedia product. They don't exist anymore - being absorbed by the all powerful, all seeing, all knowing Adobe Systems (sort of reminds me of the BORG on Star Trek - you know 'Resistance is futile').
    I tried literally everything - to no avail. Since I did try everything - up to and including a complete HDD full format and OS reinstall (which only accomplished deleting several days of my life that I'll never get back) I have come to the conclusion that it must be something inherent in the program that only affects installations performed after 12/31/12.
    My 2 laptops have no issues because the program has been on them for years and has never been reinstalled, but I would be willing to bet if I had to reinstall it on them I would start getting the same problem (since it's now past 12/31/12).
    On 12/31/12 Adobe did something in a way 'similar' to CS2 owners by rendering the activation of CS2 products inoperative. I found this out the hard way after I had just reinstalled everything while trying to deal with this issue. I had to spend hours on the phone to finally get the news from 'Dave' in Indonesia that Adobe decided to just arbitrarily render their CS2 customers paid-for software obsolete and inoperative! (Out of fairness they DID provide 'replacement' apps that don't require activation - thus avoiding MEGA lawsuits).
    Anyway - I'm just saying that software makers can build anything into their product, including date specific limitations without the consumer ever being aware of it.
    With the exception of this issue it otherwise works fine, and I guess I'll just have to deal with it from now on by dbl-clicking on Fla files TWICE instead of once - otherwise affectionately known as 'quadruple-clicking', (but if you count closing the error window then it's 'quintuple-clicking').
    I don't mind being proven wrong - so if somebody out there knows what is going on here (besides my theory of software developers time limitations resulting in complete world domination) feel free to reply. I'll get an email telling me someone replied and I'll come to this post and have a look.
    (suggestions to reinstall will be ignored - been there, done that)

  • Can't open PDF files from Windows Explorer on Windows 8.1

    Hello,
    after I've upgraded to Windows 8.1, I can't open PDF files from Windows Explorer (directly double clicking the file). The AcroRd32.exe runs in the background (2x !) as I see the processes in task manager, but there is no user interface visible. I have Acrobat
    Reader 11.0.06, the desktop version (not Metro). I tried uninstalling the Acrobat reader and installing it again but this didn't help. The only way to open PDF files is to close the AcroRd32.exe from the task manager, open empty Acrobat Reader from the desktop
    and then drag&drop the PDF file over that window. This is quite inconvenient. Is there a way to fix this issue so I can open PDF files directly from windows explorer?
    Many thanks!

    I had to install adobe reader, but   PDF's used to display just fine with IE, any idea what happened ?
    Windows 8.1 pro.
    thx
    lee

  • PSD files in Windows Explorer

    I've used Photoshop Elements 2 for a few years and have recently upgraded to Photoshop Elements 4. I am sure I remember being able to view thumbnails of .psd files in Windows Explorer when I was using PSE2. However, now with PSE4, when I select thumbnails in the View menu, all my .psd files show up as a PSE icon (camera). Is there anything I can do either in Windows XP, Windows Explorer or PSE4 to allow me to see my .psd files as thumbnails?

    Stuart,
    It is the famous story of Adobe leaving the 'psicon.dll' file out of
    Elements, starting actually with PSE3. In my experience, reinstalling PSE2
    does not seem to work. I never uninstalled it and still lost the
    thumbnails. So I went through all the motions manually to get them back.
    Take a look at the following thread, which will link you to yet another one
    and read it all. There is supposed to be some risk in using psicon, but I
    never had a problem.
    http://www.adobeforums.com/cgi-bin/webx?128@@.3bc0a11e
    Juergen

  • When browsing documente library contents from client application, cannot see all files

    We are currently running SharePoint 2010 Enterprise in a small environment. On one of my sites, I have a document library with various documents uploaded (docx, xlsx, pdf). I am unable to see all the documents when browsing the library from Word/Excel/Adobe
    Acrobat. For example:
    - At the root level of the library, I have 5 folders
    - In Folder 1, I have 10 PDF files
    - If I go into Adobe Acrobat 11, for example, and paste the address of my site in, I can see the library and I can click on it and see the 5 folders.  If I click on Folder 1, there are no PDFs listed.  Even changing File Type to "All Files"
    still returns 0 results
    Things I have tested:
    If I view the library in the browser, I can see the 10 PDFs in Folder 1.  They are not checked out and they are visible to everyone
    If I click Library>Open w/ Explorer, I can see all 10 PDFs in Folder 1
    If I try using other client applications (Word, Excel, etc..), I cannot see any files in Folder 1, even when I change the File Type to "All Files"
    If I click in some of the other Folders in the same library from within a client application, sometimes I can see the files but most times I cannot
    What could be causing this?  I do not see any errors in any of the event logs.

    Hi Sephiroth,
    I think my observation is when you browse from word/Excel/Adobe it is taking your local system credentials and so  not showing files when you access.
    local system account means the account which you used to login to the system.
    For example,you logged into the system as contosomo\xyz and you are trying to connect to the site using Contosomo\setup account,what my point is though you logged in to the site using the setup account site is taking your xyz account credentials and so it
    not showing any files as xyz obviously will not have access.
    To confirm this, you can try by giving atleast read access to the local system account (in this case xyz) to the library and then test again whether you are able to see the files or not.
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem.
    s p kumar

  • What happened to "combine files" thru Windows Explorer in the latest upgrade?

    I'm running Adobe Acrobat X - 10.0.2. Until I did an upgrade a few days ago, you could selct multiple PDF files in Windows Explorer and then do a right-click and select "Combine Files in Acrobat" (or something like that). Now that options has been removed? What gives?

    It's a known issue. See this post for a fix.

  • How do you create an AcrobatXI zip file in windows 8.1?

    How do you create an AcrobatXI zip file in windows 8.1? from acrobat.com docs?  Sorry Not sure what community to ask this in this community?  The email provider I was using didn''t seem to want to accept it through Adobe Send the first time and since Adobe Send ends January 6, I am assuming a zip file is preferable..  I thought I had seen an Adobe Zip file somewhere but haven't been able to locate it. Any help appreciated.
    Thank you.
    Sherrie

    Hi Sherrie L,
    Adobe Send is Adobe's current solution for sending large files. (It's Adobe SendNow that's retiring soon.) Can you tell us what trouble you were running into using Adobe Send?
    There isn't a special version of Zip files for Acrobat, but you could reduce the PDF file size if you have Acrobat. Or, in Windows, you can create a Zip file by choosing File > Send to > Compressed (Zipped) Folder.
    Best,
    Sara

  • The system cannot find the file specified.Windows sockets error code:2.

    Hi All,
      I am on MDM 5.5 SP6.
      I am getting the following error message when trying to logging in to the DM.
    The system cannot find the file specified.Windows sockets error code:2.This application will now exit.
    Runtime Error :
    Program C :\Program Files\SAP MDM 5.5\Data Manager\Datamanager.exe
    R6025.
    -Pure virtual function call.
    And in console also the MDM server is stopped after getting the above error message.
    Can anybody tell me what could be the problem?
    Thanks & Regards
    Sireesha.

    Hi Sireesha,
    According to me, there can be 3 problems,
    1. Kindly check whether the MDM server is stopped. If it is, then restart the MDM Server and Load the repository with Update indices.
    2. If this error is coming with every repository, the problem will be either in the Version mismatch of the Server and the GUI's you are using. Kindly ensure that the versions for the MDM server and the MDM Gui's Match.
    3. If only Data manager Client is giving the problem, then you can un-install and install the DM GUI again.
    Along with this, please refer to the link below :
    [[The system cannot find the file specified.Windows sockets error code:2.;]
    Hope it helps.
    Thanks and Regards
    Nitin jain

  • Restore thumbnails for .ai files in Windows Explorer

    Please please please? I spend so much time now trying to find the .ai files I need - Bridge is really really slow, and so I end up navigating to files in Windows Explorer, then opening Bridge and navigating to the same location in Bridge and then waiting up to two minutes for the previews to show up. It's almost easier to just open the actual files and look at them rather than trying to get a preview.
    CS3 Win XP

    One other thing to explore - do these particular files begin with Black Video?
    Good luck,
    Hunt

  • Programming help - how to get the read-only state of PDF file is windows explorer preview is ON?

    Programming help - how to get the read-only state of PDF file is windows explorer preview is ON?
    I'm developing an application where a file is need to be saved as pdf. But, if there is already a pdf file with same name in the specified directory, I wish to overwrite it. And in the overwrite case, read-only files should not be overwritten. If the duplicate(old) file is opened in windows (Win7) explorer preview, it is write protected. So, it should not be overwritten. I tried to get the '
    FILE_ATTRIBUTE_READONLY' using MS API 'GetFileAttributes', but it didn't succeed. How Adobe marks the file as read-only for preview? Do I need to check some other attribute of the file?
    Thanks!

    Divya - I have done it in the past following these documents. Please read it and try it it will work.
    Please read it in the following order since both are a continuation documents for the same purpose (it also contains how to change colors of row dynamically but I didnt do that part I just did the read_only part as your requirement) 
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0625002-596c-2b10-46af-91cb31b71393
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0155eb5-b6ce-2b10-3195-d9704982d69b?quicklink=index&overridelayout=true
    thanks!
    Jason PV

  • Windows 2k8R2 - Receiving Error when logging in ( MMC Cannot open the File: C:\Windows\system32\ServerManager.msc)

    Windows 2008 R2 - I just started receiving this when i log in, and also when i try to manage the machine:
    MMC Cannot open the File:
    C:\Windows\system32\ServerManager.msc
    This may be because the file does not exist , is not an MMC console , or was created by a later version of MMC. This may also be be because you do not have sufficient access rights to the file.
    This always worked before, and works for other users just not me on this particular box. This is a production box and i need a resolution quick please. Thanks in advance.
    PM

    Has the system update readiness tool been run without error?
    http://windows.microsoft.com/en-US/windows7/What-is-the-System-Update-Readiness-Tool
    Then check the %SYSTEMROOT%\Logs\CBS\CheckSUR.log file for errors.
     You can also try creating a new MSC
    Start|Run|"mmc"|File|Add/Remove|Server Manager|Add|Local|OK|OK|File|Save As
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

Maybe you are looking for

  • How do I get all history when I click on it in the menu bar? My history shows just one day, and bookmarks folders.

    What shows up when I click on History is a window displaying a folder for history and a folder for bookmarks. In the history folder is listed only the current tabs that are open, that's all. The other folder is bookmarks, and it shows subfolders for

  • Calling Java Functions in XSL

    Hi, I am trying to call a small java function in XSL but while performing transformation I get following error "Function not in namespaceError in XPath expression, Function not in namespace" I am performing following steps: 1. Java class file placed

  • File system for SAP Ecc 6.0 with db2 on AIX

    Hello Everyone Pleaese suggest the file system size which is to created before installation of sap ecc6.0 sr3 on Aix with DB2. Thanks

  • Cannot connect itunes store

    New iphone 5, but I cannot get any apps.  Error message comes up "Cannot connect to itunes store"  I tried switching the date as mentioned in previous post. Does anyone have a suggestion?  Thanks...

  • Process Chains - Incompletion Status

    Hi, I am having regular scheduled process chain. In the chain log, At the middle of the chain, chain was showing green, rest of the chain was showing gray color. But i can see rest of the data loads completed after checking the data targets manually.