Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

this code is giving file not found exception

 
deepak bhai
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Campbell Ritchie
Sheriff
Posts: 48652
56
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And why do you think it is throwing such an Exception? More details here.
 
deepak bhai
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 479
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks ralph, for your valuable reply
 
Campbell Ritchie
Sheriff
Posts: 48652
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
deepak bhai wrote: . . . using run as administrator
Why? I thought it was regarded as potentially dangerous to run ordinary code as an administrator.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic