• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to delete a file in an app client

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic