Class Protected

Classes and resources are protected from being extracted


If you selected one of the protect options during generating, the classes and resources are protected and cannot be extracted.

With protect option selected, maybe some compress software can still extract something from a generated exe, but that is not your protected program.


Generated exe uses a special ClassLoader to load protected classes and resource. So the ClassLoader of your program is the special ClassLoader, and the main thread's 'getContextClassLoader()' is the special ClassLoader.


Usually you need not to do anything with ClassLoader.

But sometimes a third-party library may fail to work if it need the protected resources. Usually, to resolve the problem, you can try to select Thread .currentThread .getContextClassLoader() instead of ClassLoader of current class.

Add new comment