I have a jython class that I am trying to implement via the java interface/org.python.util.PythonInterpreter method. The interface class and the class that I use to load the py script are encapsulated in a jar file. The py file is located outside the jar file in the /jre/lib/ext directory. When I attempt to create the object I recieve two errors... the first that it can't create the cachdir and it attempts to created it in the ext/**jarfile**/cachedir/packages. The second error is that the module UserString does not exist and and I think it would be due to the first error. I know the first error is because there is no permission to write to that directory. I have created a directory /usr/share/jython/cachedir and given full permissions to all user on that dir. I also changed the registry file to use that for the cache dir. When I run jython from the terminal it seems to be using that cachedir and I am able to import the module UserString without issue. So I believe my problem is that when I load the class with PythonInterpreter it is not using the settings in the registry file. Assuming that is correct, how does jython find that file and what do I need to do to ensure the PythonInterpreter finds that file and uses it?
Version Information that may be pertainent....
java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_03-b05, mixed mode)
Jython 2.2.1 on java1.6.0_03
Any help would be much appreciated!!!