0

How to run a java process to read/write only to one folder? Has the VM any option to do that?

Federico klez Culloca
  • 26,308
  • 17
  • 56
  • 95
beub
  • 43
  • 11
  • 3
    No, but your operating system surely has some form of permissions system. Run your application with a user that can only access that folder. – Federico klez Culloca Feb 17 '21 at 12:00
  • 1
    You could [use security policies](https://stackoverflow.com/questions/5526008/limiting-file-access-in-java). – dan1st Feb 17 '21 at 12:18
  • Using Windows as an Administrator: How to start a Java process using a standard user for which an folder has read access and all other do not have read access? – beub Feb 18 '21 at 09:10

0 Answers0