Freezing Jython PY scripts

Maan Hamze mmhamze at pleiades.net
Sun Sep 2 06:43:17 CEST 2001


I need to be able to create a Jython compiled JAR file that can be run on a
PC without Jython on it.
With Test.py I am compiling with
  jythonc -j Test.py
to create Test.jar
I have the classpath set correctly to '.' and jython.jar is included in the
classpath through jythonc.  And jython is using jave.exe from the Sun JRE.
However when I run Test.jar:
java -jar Test.jar
I am getting the error message due to a class not found:
org.python.core.PyObject
what am I doing wrong?
Maan





More information about the Python-list mailing list