feda alshahwan wrote:Can we run a jar file from a jar file?
Not directly. The Java classloader structure doesn't look inside embedded jars.
You can write a custom classloader that can be used to resolve the classes and class resources in an embedded jar, however. That's what programs such as the Tomcat webserver do, where a WAR (jar) contains jars in the WAR's WEB-INF/lib directory.
An IDE is no substitute for an Intelligent Developer.
posted 7 years ago
Thank you but what is the algorithm of the custom classloader? Is their any ready API ?