Dynamic Loading Path
Say I wanted to create a "Package Explorer" that could be pointed to any valid codebase type folder on my machine and it would load and display all the classes in those folders. How do I tell the class loader where to look, or to load a specific file? Here's what I've tried so far...
System.setProperty("java.class.path","c:\\folder");
Class c = Class.forName("package.MyClass");
ClassLoader myLoader =new URLClassLoader(new URL[]{new URL("c:\\folder")});
Class c = Class.forName("package.MyClass",false,myLoader);
This of course should go to c:\folder\package\MyClass.class and load it. Any help doing what I'm trying to do here?

