mercredi 6 avril 2016

Using reflection to instanciate class with java

I have a path to a .class file and i want to instantiate it from a running program. I have to "load" this class but its classpath isn't in my .jar or my project, it is in a folder besides it (can't use Class.forName()). How can i instantiate this .class ?





Aucun commentaire:

Enregistrer un commentaire