Forums Register Login

Access is denied

+Pie Number of slices to send: Send
Hi there, I just finished the part of my assignment in suncertify.db. However, when I wanted to test out the IO of the .db file, I got an error on Access is denied.

Here's the output:

C:\Documents and Settings\blahblahblah\Desktop\URLyBird
Exception in thread "main" java.io.FileNotFoundException: C:\Documents and Settings\LIM WEE TIEN\Desktop\URLyBird (Access is denied)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:98)
at suncertify.db.DataFileAccess.<init>(DataFileAccess.java:98)
at suncertify.db.Test.main(Test.java:9)
Java Result: 1

Do I need a policy file to overcome this issue?
+Pie Number of slices to send: Send
Hi

It is easy java does not find your file. Try with the whole path.

Regards M
[ July 11, 2006: Message edited by: Mihai Radulescu ]
+Pie Number of slices to send: Send
Thanks... my bad.

Now this is solved... more exceptions coming up! With no experience at all in I/O using java gonna take more time to debug everything
+Pie Number of slices to send: Send
Test First. Write copious testing code for every part of your assignment, make sure it all runs separately.

I admit my test coverage isn't what it should be, but outside my GUIs it's over 50%.
Whatever. Here's a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 798 times.
Similar Threads
Problem with JDK 1.4
running sampleproject.db.DosClient code from SCJD book
java.io.RandomAccessFile. (Urgent please)
Access Denied Error with RandomAccessFile
RandomAccessFile access denied
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 05:53:22.