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. Advertising

  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. Advertising

  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. Advertising

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,311
    Rick Strahl [MVP]
    Dec 5, 2003
  2. Stephen Witter
    Replies:
    2
    Views:
    5,521
    Stephen Witter
    May 28, 2004
  3. msnews.microsoft.com

    System.IO.FileNotFoundException help

    msnews.microsoft.com, Jun 3, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    2,266
    msnews.microsoft.com
    Jun 3, 2004
  4. Martinh
    Replies:
    0
    Views:
    2,806
    Martinh
    Aug 15, 2004
  5. tiewknvc9
    Replies:
    0
    Views:
    381
    tiewknvc9
    Sep 17, 2008
Loading...

Share This Page