Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to delete a file in an app client  RSS feed

Andrew McCracken
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
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!