Loading class without qualified name
Is it possible to load a class given only the name of the class,
but not its package information? I also tried googling and forum
search, but either I don't know what kewords to use or there's nothing
out there.
Thanks!
I've tried:
Class.forName("ReflectionClass");
MyClass.class.getClassLoader().getResource("ReflectionClass");
MyClass.class.getClassLoader().getResource("ReflectionClass.class");
MyClass.class.getResource("ReflectionClass");
MyClass.class.getResource("ReflectionClass.class");
Thread.currentThread().getContextClassLoader().getResource("ReflectionClass");
Thread.currentThread().getContextClassLoader().getResource("ReflectionClass.class");
ClassLoader.getSystemResource("ReflectionClass");
ClassLoader.getSystemResource("ReflectionClass.class");
ClassLoader.getSystemClassLoader().loadClass("ReflectionClass").toString();
ClassLoader.getSystemClassLoader().loadClass("ReflectionClass.class").toString();

