Two Laptop Bag
The moose likes I/O and Streams and the fly likes Unzip file - Access denied Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Unzip file - Access denied" Watch "Unzip file - Access denied" New topic

Unzip file - Access denied

Jeppe Sommer
Ranch Hand

Joined: Jan 07, 2004
Posts: 270

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 C:\Users\myUser\foodticket\icaste (access denied)
at Method)
at module.driver.icaste.ICaste.unZipIt(
at module.driver.icaste.ICaste.downloadZippedDriverPackage(

Looking in Windows path finder the folder "icaste" is created properly:

Any help would be appreciated, please.
Greg Charles

Joined: Oct 01, 2001
Posts: 2969

It looks to me like you're trying to unzip icaste, which is a folder, not a zip file.
I agree. Here's the link:
subject: Unzip file - Access denied
It's not a secret anymore!