vendredi 10 août 2018

Java - Add Jar to classpath at runtime

I have a web application that loads all the classes that are in the classpath and that extend a specific interface. I added a feature to upload a jar that contains other classes that implement that interface. I would like to know how I can add the jar in the classpath of the web app and load those classes. Does anyone know how to do? Thank you!




Aucun commentaire:

Enregistrer un commentaire