• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Bear Bibeault
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • salvin francis
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Jj Roberts

Applet can't write to the file, Permission denied

 
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?
 
Rancher
Posts: 43016
76
  • 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: 43016
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For development you can use a self-signed certificate.
 
I AM MIGHTY! Especially when I hold this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic