Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to delete a file in an app client

 
Andrew McCracken
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are developing an application that accepts a file into a watched directory. We then move that file to a staging directory and use its conteints as the text of a text message. We then need to delete the file from the local file system. Using File.delete() results in a security exception. I have tried modifying the server.policy file to allow deletes without any effect. Using Runtime.getRuntime().exec() also gets a security exception.

This is our first foray into using J2EE for this sort of thing

Any ideas on how to delete the file
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!