Please Notice: For fastest support from PowerArchiver team, contact us via our Support page

Not able to open zip file



  • 1. Write a java program to create a zip which does contains 1 or 2 files.
    2. Compile and Run that program
    3. Navigate to the folder where the zip has been created
    4. Double click that newly created zip file. Now it will show the files which are in the zip file.
    5. Double click that file which is inside that newly created zip file.
    6. The file is not opening.



  • could you provide a link to such a file?



  • Hi,

    I do not have link to send that file. If I have your mail id then i can forward that zip file to you.

    Regards
    Balaji.



  • If it happens when zipping a single file then could you just attach an example ? (zip less than 100Kb is OK).


  • Alpha Testers

    @tsbalaji86:

    4. Double click that newly created zip file. Now it will show the files which are in the zip file.
    5. Double click that file which is inside that newly created zip file.
    6. The file is not opening.

    What kind of file (fileextension) are you trying to extract from the zip file? You need to provide more information because “the file is not opening” isn’t saying anything.

    Kind Regards
    Micke


  • conexware

    Problem is in path storing… this was also reported to support.

    You should not save path as C:… rather just save folder and not drive letter.


  • conexware

    (so ignore characters left from first ).



  • @spwolf:

    Problem is in path storing… this was also reported to support.

    You should not save path as C:… rather just save folder and not drive letter.

    I ignored the “”. but still i am not able to open the file. One thing i captured is, extracted path is different if i extract.

    Previously i did not ignore the “”, on that, the extracted path will be different. For example, if the file is "C:\sample\one.zip, if i extract one.zip (if it contains 2.txt) it will create the folder named ‘2’ and it will put the 2.txt inside that folder ‘2’.

    After ignore the “”, if i extract it creates folder called ‘one’ inside that we can find the file ‘2.txt’

    Thanks and regards
    balaji.



  • @Micke:

    What kind of file (fileextension) are you trying to extract from the zip file? You need to provide more information because “the file is not opening” isn’t saying anything.

    Kind Regards
    Micke

    It does not throw any errors.



  • @TBGBe:

    If it happens when zipping a single file then could you just attach an example ? (zip less than 100Kb is OK).

    how can i attach zip file here? could you pl tell


  • conexware

    the said zip file is inside this 7z file
    attachment_p_22067_0_archives.7z


  • Alpha Testers

    @tsbalaji86:

    I ignored the “”. but still i am not able to open the file. One thing i captured is, extracted path is different if i extract.

    How is the path stored in your zip file? When I looked in the zip file provided by Mili the path is stored like “C:\Export” but it should be stored like “Export”

    After you have ignored the backslash “” is the path now “Export” in the zip file?

    Kind Regards
    Micke


  • Alpha Testers

    @tsbalaji86:

    how can i attach zip file here? could you pl tell

    When you are in the editor of writing a new message, there’s a small “paper clip” button to the right of the “Smilies” button. Click on the “paper clip” button to bring up a new Window, where you can upload the zip file.

    Kind Regards
    Micke


  • conexware

    try attaching now, it should work as you are now senior member.



  • @tsbalaji86:

    I ignored the “”. but still i am not able to open the file. One thing i captured is, extracted path is different if i extract.

    Previously i did not ignore the “”, on that, the extracted path will be different. For example, if the file is "C:\sample\one.zip, if i extract one.zip (if it contains 2.txt) it will create the folder named ‘2’ and it will put the 2.txt inside that folder ‘2’.

    After ignore the “”, if i extract it creates folder called ‘one’ inside that we can find the file ‘2.txt’

    I think you mis-understood spwolf.
    He meant that if you need to open files from within the archive then your compression utility (java program) should NOT store the drive/root information as part of the path.

    So instead of storing as “C:\Export\2.txt” store it as “\Export\2.txt” or just “Export\2.txt”.



  • What the guy has produced is a zip file that pa can’t open but other archivers can. wso when will pa have a fix for these type of zip files



  • @Micke:

    How is the path stored in your zip file? When I looked in the zip file provided by Mili the path is stored like “C:\Export” but it should be stored like “Export”

    After you have ignored the backslash “” is the path now “Export” in the zip file?

    Kind Regards
    Micke

    Hi Micke,

    After removing the ‘C:’ i am able to open the files which are in that ZIP file :). Thank you for your valuable reply and help.

    Regards
    Balaji



  • @TBGBe:

    I think you mis-understood spwolf.
    He meant that if you need to open files from within the archive then your compression utility (java program) should NOT store the drive/root information as part of the path.

    So instead of storing as “C:\Export\2.txt” store it as “\Export\2.txt” or just “Export\2.txt”.

    Hi,

    After removing the ‘C:’ i am able to open the files which are in that ZIP file . Thank you for your valuable reply and help.

    Regards
    Balaji


Log in to reply
 

Looks like your connection to PowerArchiver Forums was lost, please wait while we try to reconnect.