using reflection within Jar

Hi,

I have a class that dynamically loads one of many classes (read from a properties file) for parsing. The code works fine when I run it as unbundled class files with the class path set to the directory containing the classes. When I package the application as a jar, add the jar to the class path and invoke the main method, the jvm is unable to find the classes (in the piece that uses Class.forName()) and throws an exception.

I tried even using the Class.forName(className, true, ClassLoader.getSystemClassLoader()) but still it is unable to find the classes present in the jar file (which is in the classpath).

Any help is greatly appreciated.

Thanks,

Senthil

[711 byte] By [sthiyaga] at [2007-9-26 3:50:57]
# 1
Ignore this ... stupid mistake elsewhere in the code!
sthiyaga at 2007-6-29 12:36:53 > top of Java-index,Desktop,Deploying...