Menu
  • HOME
  • TAGS

Custom classloader trouble with getResources for names ENDING in slash

java,classpath,classloader,urlclassloader,dynamic-class-loaders

Given all constraints this does not appear entirely possible in a rock solid fashion as I wanted it: a) Third party libraries may always "misbehave" and get hold of lassloaders they are not supposed to use one way or another. I looked at OneJar as suggested by fge but they...

Dynamically load top-level class in a jar outside of classpath

java,jar,classloader,dynamically-generated,dynamic-class-loaders

Everything that was suggested didn't seem to work because the files i needed to load were outside my classpath. This answer works though...

Getting the path to a .class file of a dynamically loaded Class in JAVA

java,reflection,classpath,dynamic-class-loaders,google-reflections

I suggest you replace throw new RuntimeException("Found two conflicting factories for " + key + ": 1. " + class1 + " in " + getClass().getResource(class1.getSimpleName()+".class").toURI() + " 2. " + class2 + " in " + getClass().getResource(class2.getSimpleName()+".class").toURI()); with throw new RuntimeException("Found two conflicting factories for " + key +...