Using a jar with jython
accattatevillo
^NOSPAM^ifi at ifi.it
Wed Mar 7 08:33:13 EST 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
> I'm
> >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()
> 4
>
> What are the problems that you are having? Error messages?
>
C:\jdk1.3>jython
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
>>> dir()
['__doc__', '__name__', 'com']
>>> dir(com.ibm.as400)
['__name__', 'ui']
>>>
Tnx for the crosspost: I didn't know that there was that group.
TIA
Stefano
More information about the Python-list
mailing list