ClassLoader problems
I'm trying to dynmically load some junit classes and I'm having a serious problem. Loaded classes have null values. Meaning the Class is found and created, and is not itself null, but all of it's members are null (such as method names). Currently, I'm using the TestCaseClassLoader from junit, but I've also tried getting the class loader from class.getClassLoader off of one of the testCases. Any suggestions would be appreciated, and appologies if this is the wrong thread for the post.
//gets the name of the file
fileName = file.toString();
TestCaseClassLoader classLoader = new TestCaseClassLoader();
Class classFile = null;
//try to load the class
try
{
String fullPath = relativePath + "." + fileName;
classFile = classLoader.loadClass(fullPath, true);
}
catch (Exception e) {
e.printStackTrace();
System.out.println("Could not load the file " + fileName);
}
return classFile;

