• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Unzip file - Access denied

 
Ranch Hand
Posts: 270
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi.

I am trying to unzip a file but get an access denied error.

I'm running (resin) in administrator mode on Windows. I am able to create files and folders, but my code fails here:
out = new FileOutputStream(entryDestination);

The error looks like:

*** Folder created: C:\Users\myUser\foodticket\icaste
*** EntryDestination: C:\Users\myUser\foodticket\icaste

java.io.FileNotFoundException: C:\Users\myUser\foodticket\icaste (access denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
at java.io.FileOutputStream.<init>(FileOutputStream.java:145)
at module.driver.icaste.ICaste.unZipIt(ICaste.java:165)
at module.driver.icaste.ICaste.downloadZippedDriverPackage(ICaste.java:2
84)

Looking in Windows path finder the folder "icaste" is created properly:
C:\Users\myUser\foodticket\icaste



Any help would be appreciated, please.
 
Sheriff
Posts: 3063
12
Mac IntelliJ IDE Python VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It looks to me like you're trying to unzip icaste, which is a folder, not a zip file.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic