This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes this code is giving file not found exception Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "this code is giving file not found exception " Watch "this code is giving file not found exception " New topic
Author

this code is giving file not found exception

deepak bhai
Ranch Hand

Joined: Apr 22, 2011
Posts: 32
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32839
    
    4
And why do you think it is throwing such an Exception? More details here.
deepak bhai
Ranch Hand

Joined: Apr 22, 2011
Posts: 32
yes i have checked the file accesibility , system have full rights on it .. also i am running my net beans using run as administrator
Ralph Cook
Ranch Hand

Joined: May 29, 2005
Posts: 479
The most likely reason: it is not in the directory where you think it is looking. Use a full file path and see if it still gives you the error.

The second most likely reason: the filename is spelled differently in the program than the file's actual name.

rc
deepak bhai
Ranch Hand

Joined: Apr 22, 2011
Posts: 32
thanks ralph, for your valuable reply
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32839
    
    4
deepak bhai wrote: . . . using run as administrator
Why? I thought it was regarded as potentially dangerous to run ordinary code as an administrator.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: this code is giving file not found exception
 
Similar Threads
travel agent java -- problem when i put the input prompt it does not go to the next promp
travel agent - java writing to file via user input
unable to exit program..
Array vs java.util.ArrayList
getting no such element exception