Questions Tagged With classloaderhttps://answers.axonivy.com/tags/classloader/?type=rss&user=Lars%20Tuchelquestions tagged <span class="tag">classloader</span>enTue, 09 Jul 2019 07:31:24 -0400Loading classes from WEB-INF/libhttps://answers.axonivy.com/questions/3879/loading-classes-from-web-inf-lib<p>Dear ivyteam</p> <p>In our project we'd like to have the following structure: Our ivy project contains a jar which has some Java interfaces. Then we'd like the implementations for these interfaces in another external jar that we can deploy independently. Our idea was to put into the WEB-INF/lib folder. </p> <p><img alt="alt text" src="https://answers.axonivy.com/upfiles/example.png"></p> <p>But if we try to load the class from the jar (using <code>ClassLoader#loadClass</code>) we get a <code>NoClassDefFound</code> exception. Is there any way to get such a structure to work? Maybe with some class loader magic?</p> <p>Best regards Lars</p>Lars TuchelTue, 09 Jul 2019 07:31:24 -0400https://answers.axonivy.com/questions/3879/loading-classes-from-web-inf-libclassloaderivy