this was the original approach for Java, and the main idea behind being able to ship untrusted apps directly to the user and run them in the browser
tomcat also gave different privilege levels to different parts of the classpath
nice idea, but didn't seem to work in practice