Forums Register Login

Accessing File from applet through webapp

+Pie Number of slices to send: Send
i am creating a file using an applet ... that applet code is above web-inf folder .... if i create a file ... its creating on my desktop instead of current directory where applet is running .... what is that so?
and also i have two files where i am reading from applet ... but if i place those two files in my desktop , then it reads ... and if i place those files in current directory i will get FileNotFoundException.
I have created my own .java.policy file for accessing and reading the files...i have no problem in that....
The problem i am facing is , when i give absolute path , the file is being read ... but my question is why always c:\Document and Settings\madhu\Desktop ?? why it takes this as a classpath ??

Thankyou,
+Pie Number of slices to send: Send
Please do not post the same question to multiple forums: CarefullyChooseOneForum

Let's continue the discussion in this duplicate thread.
Time flies like an arrow. Fruit flies like a banana. Steve flies like a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


Reply locked
This thread has been viewed 678 times.
Similar Threads
PrivilegedActionException
Issues with Jar Files and loading images
class file not found exception
Applet + file access
using .java.policy files
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 03:24:40.