Is it possible to implement some kind of JVM sandbox for running application ? I'd like to restrict access of this application for example to files IO, network, etc.
Is any way to control these resources access for running app inside of JVM in this sandbox ?
That's what SecurityManager is for.
They even have a tutorial.