tags:

views:

33

answers:

2

Hi,

I have a Maven module, that depends on various other Maven dependencies by which I am accessing through my jython code.

I am now done, and I would like to compile the project as a .jar, or even just run it without compiling, but I have no clue where to start.

Does anyone have any idea how I can run some .py files that accesses some Java libraries in other packages?

Also, how can I compile it as a .jar file when all is done and good?

Thanks!

A: 

I am now done, and I would like to compile the project as a .jar,

It looks like there is a maven-jython-plugin allowing to compile jython source files to Java class files.

Pascal Thivent
A: 

I've kinda figured out my answer to this. I shouldn't have tried to compile it, but instead wrap the python code with Java: http://jythonpodcast.hostjava.net/jythonbook/en/1.0/JythonAndJavaIntegration.html#using-jython-within-java-applications

nubela