Class.forName works fine for me when I run applications with “jython” interpreter but fail to work when I convert script into jar file java application with jythonc.  I’ve tried all sort of CLASSPATH combinations including adding jython.jar before and after compiling with jythonc.


Any ideas why?


Here is what I’m seeing/doing.


% cat

import java


print 'did it’


% jython

did it


So far so good….


% rm –rf jpywork load_class.jar


% jythonc --all --jar load_class.jar

….No error’s listed….


% java –jar load_class.jar

Exception in thread "main" Traceback (innermost last):




java.lang.ClassNotFoundException: java.lang.ClassNotFoundException: org.postgresql.Drive




Thanks --- warren.