Hi all,
I have written a Jython program which (among other things) uses an
instance of the java class org.python.util.PythonInterpreter. If I
execute this program and submit an "import javax" or a "import calendar"
(Python module) statement to the PythonInterpreter object, it will work
fine.
But if I compile with jythonc this Jython program and then execute the
resulting java code (in the same environment, with the same CLASSPATH),
submitting the same import statements, I get an ImportError in both
cases ("No module named javax|calendar"). But I'm still able to perform
some imports concerning some of my own Java libraries.
I suspect this is some kind of a CLASSPATH problem, but I can't figure
out which one exactly. Or maybe the jythonc options used ? I used the
command :
jythonc --package com.intraware.b2b.ifwk.client.tools --jar
%DESTDIR%\ifwkjython.jar %SRC%\ifwkjython.py
...and added %DESTDIR%\ifwkjython.jar to my CLASSPATH.
Any clue ? Thanks in advance.
Richard Gruet
|