i am trying to write a method that goes around my classpath finding jars (that bit done and sorted using a url classloader).
then i want to interogate the jars hunting for any look and feels (so any class extending LookAndFeel)
here is my current attempt:
what am i supposed to do next?
i hope i have given enough information
Forgot to add this code has been copied from somewhere else in the application, but that insited the class name it was hunting for finished with CustomerAddOn, so i can't nick the rest of it. I considered reflection but that sounded far too heavyweight.
It appears that the class you are trying to load is not present in the ClassLoader represented by 'currentClassLoader'. If the currentClassLoader is an instance of URLClassLoader you should first add the URL to the JAR before trying to load the class. Alternatively, if you already added the JAR to a ClassLoader, user that one to load the class file.
Also, don't forget that any libraries needed by those classes need to be loaded by that class loader as well. So make sure that either the URLClassLoader has loaded them, or they are loaded by a class loader which you then use to construct the URLClassLoader.