I'm trying to load jar file from web using URLClassLoader
, all works fine, but all loaded classes keeps stored in Windows temp directory, and can be copied for deobfuscation until I call classLoader.close();
which in turn will cause a program ClassNotFoundException
.
Can I load classes without saving to disk?
(Only memory) Another solution encrypt jar classes, and write custom ClassLoader that will decrypt classes, but i don't find any examples.
I tried to look for docs or articles on this topic, but found nothing :(
Please tell me whether it is possible to implement and where I can take the material on the topic? Thanks!