I already tried with custom classloader, it is dynamically adding into classpath, it is resolving the class cast exception but it is not loading all the classes from the jar files as it is calling a class from another jar file. and then it is giving me NoClassDefFoundError. Please give me suggestions to dynamically load all the classes from the jarfiles in java17?