Jython and python modules

Posted by Geo on Stack Overflow See other posts from Stack Overflow or by Geo
Published on 2009-01-22T21:57:46Z Indexed on 2010/04/04 9:13 UTC
Read the original article Hit count: 541

Filed under:
|
|
|

I've just started using the PythonInterpreter from within my Java classes, and it works great! However, if I try to include python modules (re, HTMLParser, etc.), I'm receiving the following exception (for re):

Exception in thread "main" Traceback (innermost last):
  File "", line 1, in ?
ImportError: no module named re

How could I make the classes from the jython jar "see" the modules python has available?

© Stack Overflow or respective owner

Related posts about python

Related posts about jython