Java applets do not allow you to write custom ClassLoader unless you sign your applet. Why is this so? Custom ClassLoader is just a tool for finding classes. In fact, you do not load the class, except that you call the private method "defineClass", which is the "trusted" code in the sense that it is written and controlled by a virtual machine, not your applet. It's not like you get more permissions than the ability to dynamically load a class ... Which really means nothing.
I think as a side question: is there any other way to dynamically transition from
byte[] => Class
which is allowed with unsigned applets?
source
share