• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet can't write to the file, Permission denied

 
Mouza Ali
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I always get back to this great forum. I have a problem with the Applet. I build a Java Applet that when a button is pressed, some java classes in eclipse will create a file and then the Applet should be able to write to this file. But it seems that there is a java.io exception, where it says: permission denied on /home/mouza/public.xml write!

I tried changing the permission of the Applet class to u=rwx and let the applet sets the file permission using java too, but also didn't work!

How can I solve this prob?
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By default, applets can't access the local file system as a security precaution. The HowCanAnAppletReadFilesOnTheLocalFileSystem page explains how to get around that.
 
Mouza Ali
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks,

When I was googling, I found that I have to sign the applet, but getting arround not buying a certificate from thawt is the issue now.
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For development you can use a self-signed certificate.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic