FileNotFoundException (Access Denied)

Discussion in 'Java' started by James, Apr 25, 2008.

  1. James

    James Guest

    What are some causes of a "FileNotFoundException (Access Denied)"
    error when the file exists? What could cause access to be denied?

    I`m running on Windows. Alan
     
    James, Apr 25, 2008
    #1
    1. Advertisements

  2. James

    EJP Guest

    James wrote:
    > What are some causes of a "FileNotFoundException (Access Denied)"
    > error when the file exists? What could cause access to be denied?


    Operating system permissions. Note that this exception has nothing to do
    with Java permissions: they would cause an AccessControlException.
     
    EJP, Apr 25, 2008
    #2
    1. Advertisements

  3. James

    Roedy Green Guest

    On Thu, 24 Apr 2008 19:32:30 -0700 (PDT), James
    <> wrote, quoted or indirectly quoted someone
    who said :

    > What are some causes of a "FileNotFoundException (Access Denied)"
    >error when the file exists? What could cause access to be denied?


    On Vista files have owners. There are permissions for who can do what
    to a file.

    On top of that you may be excluded because the file is in use.
    Sometimes rebooting will clear a stuck in use flag.

    Then you can try to write a read-only file.
    --

    Roedy Green Canadian Mind Products
    The Java Glossary
    http://mindprod.com
     
    Roedy Green, Apr 26, 2008
    #3
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Brian
    Replies:
    1
    Views:
    3,482
    Rick Strahl [MVP]
    Dec 5, 2003
  2. Ros@
    Replies:
    3
    Views:
    803
  3. Jay
    Replies:
    2
    Views:
    1,234
  4. tiewknvc9
    Replies:
    0
    Views:
    424
    tiewknvc9
    Sep 17, 2008
  5. Oliver
    Replies:
    0
    Views:
    257
    Oliver
    Sep 14, 2004
  6. Marc

    Security Access, Access Denied

    Marc, Aug 16, 2006, in forum: ASP .Net Security
    Replies:
    0
    Views:
    246
  7. Alex Washtell via .NET 247

    Web Service + Anon Access, but getting 401 Access Denied Error

    Alex Washtell via .NET 247, Apr 5, 2005, in forum: ASP .Net Web Services
    Replies:
    1
    Views:
    366
    Mauro Ottaviani [MSFT]
    Apr 5, 2005
  8. Diego Fernández Santos
    Replies:
    2
    Views:
    325
Loading...