If a class is 'encrypt and hide' by Jar2Exe, it is loaded by a special native ClassLoader. A class which is not 'encrypt and hide' cannot load a 'encrypted' class. That is to say, if you call Class.forName("className") within a un-encrypted class for a protected class, it may fail.
A program with a ClassLoader is usually a bit complex and abstract. So there may be somewhere else that cause the failure. Please contact me if your problem not resolved or you have any other ideas.
Dear Hassany,
Thank you for your message.
If a class is 'encrypt and hide' by Jar2Exe, it is loaded by a special native ClassLoader. A class which is not 'encrypt and hide' cannot load a 'encrypted' class. That is to say, if you call Class.forName("className") within a un-encrypted class for a protected class, it may fail.
The solution is to use "Thread .currentThread() .getContextClassLoader()" to load the class instead. http://www.jar2exe.com/createdexe/integrate/protect
A program with a ClassLoader is usually a bit complex and abstract. So there may be somewhere else that cause the failure. Please contact me if your problem not resolved or you have any other ideas.
Thanks a lot.
Sswater Shi