You probably want to look at the Clamp project (, which supports the singlejar use case. See for more details.

Incidentally, I will be at EuroPython, and Clamp is a major part of what I be discussing:
Lastly, I will also be at JavaOne where my colleague Werner Mendizabal and I have a presentation about related efforts to run OpenStack on the JVM, using Jython. In particular, we are working on a production deployment of the Keystone identity service using Jython, going against a Java backend that we have at Rackspace. We plan to use Clamp as part of this deployment process.

- Jim

On Mon, Jun 16, 2014 at 4:46 AM, Christian Wutte <> wrote:
Hello everybody,

unfortunately I can't get it to work combining Python scripts, Java
classes and the Jython runtime in a single jar as mentioned in the wiki:

I noticed the following with the released jars from version 2.7b2 (and
2.5.4rc1 too):

header for both:
Jython 2.7b2 (default:a5bc0032cf79+, Apr 22 2014, 21:20:17)
[Java HotSpot(TM) Client VM (Oracle Corporation)] on java1.7.0_60
Type "help", "copyright", "credits" or "license" for more information.

jython.jar from the regular installation (without Python standard
library /Lib inside jar):
>>> import org; dir(org)
['__name__', 'apache', 'ietf', 'jcp', 'omg', 'python', 'w3c', 'xml']

jython.jar including /Lib, like the standalone.jar:
>>> import org; dir(org)

So while the jython.jar allows adding Java classes and accessing them,
it won't work with the standalone.jar.

How can I have both, the /Lib and access to Java classes, in a single jar?


HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
Jython-users mailing list