> The scripts I want to run are written in CPython.
> I am using PythonInterpreter for invoking those scripts.
> This PythonInterpreter is in the jython.jar of Jython 2.1 release.
> The CPython I used was of version 2.6.
OK, so you want to run scripts that are written for cpython 2.6 on jython 2.1.
There are two stages to getting this done
1. You may have to modify the scripts to run on jython 2.1, if they
use syntax or concepts that were introduced after 2.1, e.g. iterators,
generators, list comprehensions, generator comprehensions,
metaclasses, new-style classes, decorators, context managers, etc,
etc, etc. The way to check this is to run the scripts using the jython
2.1 command line interpreter, and see if they run smoothly. If they do
not, e.g. they give syntax errors, then you will have to modify the
scripts; there is no magic way of getting a 2.1 interpreter to
understand 2.6 syntax.
Here are some lists of new features that have been added to the
language since 2.1
2. Once you have the scripts running on jython 2.1, then you can use
well-documented embedding techniques to run them using a
PythonInterpreter, from inside a java program.
Here is a reference to the old embedding documentation for 2.1
Out of interest, why are you targetting jython 2.1? It would probably
be much easier to target jython 2.5.