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.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.