Java Security FAQ: Create my own class inside java.net
Here's an applet that tries to create its own class inside the
java.net hierarchy:
and here's the source.
Conclusion:
Applets can't define classes inside a system hierarchy, such as
java.net, unless the applet is loaded from a directory on your
CLASSPATH.
Back to the Java Security FAQ