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?
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?
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.