Using a jar with jython
^NOSPAM^ifi at ifi.it
Wed Mar 7 14:33:13 CET 2001
Simon Brunning wrote:
> accattatevillo <^NOSPAM^ifi at ifi.it> wrote in message
> <3AA6115E.7B2ACDEE at ifi.it>...
> >I'm trying to convert a java application to jython.
> >I use the IBM java toolbox JT400.jar to access data on a AS/400 bat
> >not able to do the same thing with jython.
> >With java I added jt400.jar to the CLASSPATH but in jython???
> >Anyone could help me?
> Works for me:
> Jython 2.0 on java1.1.8 (JIT: symcjit)
> Type "copyright", "credits" or "license" for more information.
> >>> import com.ibm.as400.access
> >>> my400 = com.ibm.as400.access.AS400()
> >>> my400.getVersion()
> What are the problems that you are having? Error messages?
Jython 2.0 on java1.3.0 (JIT: null)
Type "copyright", "credits" or "license" for more information.
>>> import com.ibm.as400.access
Traceback (innermost last):
File "<console>", line 1, in ?
ImportError: No module named access
>>> import com.ibm.as400
['__doc__', '__name__', 'com']
Tnx for the crosspost: I didn't know that there was that group.
More information about the Python-list