java.io.FileNotFoundException: (Access is denied)
Solution: Sometimes file is present but does not have enough rights to read the same.
1)Ensure you have permission to read jar(used in the app) file.
2)Check whether the file is not locked by other application. If the file is opened in some window or some other application is reading the same file if you are on Windows OS.
eg: You can get the exception if you are trying to read the file while it is opened in notepad
3)The access was restricted by windows. Some users does not have access to the drive or directory.
4) Insufficient privileges to the file (Like no read permissions) or the folder
1)Ensure you have permission to read jar(used in the app) file.
2)Check whether the file is not locked by other application. If the file is opened in some window or some other application is reading the same file if you are on Windows OS.
eg: You can get the exception if you are trying to read the file while it is opened in notepad
3)The access was restricted by windows. Some users does not have access to the drive or directory.
4) Insufficient privileges to the file (Like no read permissions) or the folder
Comments
Post a Comment