Kedarnath Bhagwat
Greenhorn
Posts: 20
I am accessing the file using RandomAccessFile .
I get following error
Exception in thread "main" java.lang.RuntimeException: The given file does not exist.
Caused by: java.io.FileNotFoundException: C:\db-1x3.db (Access is denied)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
Java Result: 1

The file exists at the location and if I only read is successful operation with parameter "r"
If I pass "rw" then I get the above error.

Can anyone help me with this error .

Kedarnath Bhagwat
Greenhorn
Posts: 20
Oops ! I figured it out .
I put the file in C:\ drive . It was giving me only read access .
I created C:\test folder and put the db file there .