0

I got a small question: (How) can I run some java code (preferable a jar) in its own JVM, in best case specifying my own libs. So for example to sandbox all file system access.

What of this stuff is possible, and how?

Maroun
  • 94,125
  • 30
  • 188
  • 241
Kilobyte
  • 320
  • 3
  • 16

1 Answers1

2

To limit access to the file system or any other resource, make use of Java's Security Manager. See http://docs.oracle.com/javase/7/docs/technotes/guides/security/index.html for information on how to configure a policy.

Chris K
  • 11,622
  • 1
  • 36
  • 49