See Mixing Privileged Code and Sandbox Code in the Java Platform, Standard Edition Deployment Guide for the most current information.