I'm having a problem importing modules from jar files.

I have the jar files in my classpath when I'm running jython interpreter and it cannot find the modules that i'm importing, unless I add the directories where the jar files are located in the jyhton source code as well, using sys.path.append

If I run exactly the same jython code using the interp.execfile("program.py")  from within a java program with the same classpath, it works just fine and I do't have to append the directories in the sys.path.

It seems odd to me that interp.execfile does work with the classpath set for the JVM and the jython interpreter itself doesn't.