Jpython Question

Ian Kezsbom ikezsbom at eecs.tufts.edu
Fri Jul 23 10:36:45 EDT 1999


Just out of curiosity...lets say I've written a Java program, with many
classes and I want to run that program through JPython and have access to
all its classes...how would I go about doing this...

Ian

On 20 Jul 1999, Lars Marius Garshol wrote:

> 
> * Ian Kezsbom
> | 
> | I was just wondering if jpython can instantiate java classes and
> | invokes methods on them...any help would be welcome...
> 
> It can, and it's very easy too. Here's a snippet from an email I sent
> earlier today:
> 
> C:\Mine dokumenter>jpython
> JPython 1.1beta1 on java1.1.7B
> Copyright (C) 1997-1999 Corporation for National Research Initiatives
> >>> from java.util import Hashtable
> >>> h=Hashtable()
> >>> h.put("larsga at ifi.uio.no","Lars Marius Garshol")
> >>> h.get("larsga at ifi.uio.no")
> 'Lars Marius Garshol'
> >>>
> 
> It's actually as easy as this.
> 
> --Lars M.
> 
> 





More information about the Python-list mailing list