Re: Integration with java (Jpype vs. JPE)

2005-01-18 Thread Steve Menard
Istvan Albert wrote: Steve Menard wrote: To asnwer your question more fully, the jpype-specific cide is only for looking up the Classes and startting/stopping the environment. For everything else, Java objects and classes are used as regular Python objects. Thanks for the response. Currently I

Re: Integration with java (Jpype vs. JPE)

2005-01-18 Thread Irmen de Jong
Joachim Boomberschloss wrote: Option iii would also enable writing independent packages in Python and Java, but its glue layer will be distributed between Python and Java using Jython and Pyro (I chose Pyro because it works in both CPython and Jython, and can be used to communicate between them). P

Re: Integration with java (Jpype vs. JPE)

2005-01-18 Thread Joachim Boomberschloss
Thanks for the info. I understand now the background and possibilities, but would like to refine my query: As I see it, writing a hybrid Java/Python application faces approximately three possibilities: (i) write the core in Java and do some scripting with Jython, (ii) write independent code in Java

Re: Integration with java (Jpype vs. JPE)

2005-01-18 Thread Istvan Albert
Steve Menard wrote: To asnwer your question more fully, the jpype-specific cide is only for looking up the Classes and startting/stopping the environment. For everything else, Java objects and classes are used as regular Python objects. Thanks for the response. Currently I don't need to use java

Re: Integration with java

2005-01-18 Thread Steve Holden
Dan Bishop wrote: Istvan Albert wrote: Joachim Boomberschloss wrote: the code is already written in Python, using the standard libraries and several extension modules One thing to keep in mind is that Jython does not integrate CPython, instead it "understands" python code directly. So if you have

Re: Integration with java

2005-01-18 Thread Dan Bishop
Istvan Albert wrote: > Joachim Boomberschloss wrote: > > > the code is already written in Python, using the > > standard libraries and several extension modules > > One thing to keep in mind is that Jython does not > integrate CPython, instead it "understands" python code > directly. So if you ha

Re: Integration with java (Jpype vs. JPE)

2005-01-17 Thread Steve Menard
Istvan Albert wrote: Cameron Laird wrote: Someone really ought to include a couple of sentences to that effect on the front page of http://jpype.sf.net/ >. Now I remember visiting this site, but never understood how it actually worked. Examples such as: from jpype import * startJVM("d:/tools/j2sdk

Re: Integration with java (Jpype vs. JPE)

2005-01-17 Thread Jan Dries
Istvan Albert wrote: Now I remember visiting this site, but never understood how it actually worked. Examples such as: from jpype import * startJVM("d:/tools/j2sdk/jre/bin/client/jvm.dll", "-ea") java.lang.System.out.println("hello world") shutdownJVM() in three different versions are the only code

Re: Integration with java (Jpype vs. JPE)

2005-01-17 Thread Istvan Albert
Cameron Laird wrote: Someone really ought to include a couple of sentences to that effect on the front page of http://jpype.sf.net/ >. Now I remember visiting this site, but never understood how it actually worked. Examples such as: from jpype import * startJVM("d:/tools/j2sdk/jre/bin/client/jvm.dl

Re: Integration with java (Jpype vs. JPE)

2005-01-16 Thread Steve Menard
Cameron Laird wrote: In article <[EMAIL PROTECTED]>, Jon Perez <[EMAIL PROTECTED]> wrote: Can someone summarize in a nutshell what is the difference between JPype and JPE? JPE's the original. It provided more functionality than JPype has achieved so far, I believe (though that could change any d

Re: Integration with java (Jpype vs. JPE)

2005-01-15 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Jon Perez <[EMAIL PROTECTED]> wrote: >Can someone summarize in a nutshell what is the >difference between JPype and JPE? JPE's the original. It provided more functionality than JPype has achieved so far, I believe (though that could change any day). I think no on

Re: Integration with java (Jpype vs. JPE)

2005-01-15 Thread Jon Perez
Can someone summarize in a nutshell what is the difference between JPype and JPE? -- http://mail.python.org/mailman/listinfo/python-list

Re: Integration with java

2005-01-14 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Istvan Albert <[EMAIL PROTECTED]> wrote: >Joachim Boomberschloss wrote: > >> the code is already written in Python, using the >> standard libraries and several extension modules > >One thing to keep in mind is that Jython does not >integrate CPython, instead it "u

Re: Integration with java

2005-01-14 Thread andybak
How about this? http://jpype.sourceforge.net/ (I haven't used it myself) -- http://mail.python.org/mailman/listinfo/python-list

Re: Integration with java

2005-01-14 Thread Christopher De Vries
It is possible, though possibly painful, to call java modules from CPython using JNI. This is more difficult than Jython integration, but probably required if you want to keep using your extension modules. The JNI tutorial is available at http://java.sun.com/docs/books/tutorial/native1.1/index.htm

Re: Integration with java

2005-01-14 Thread Istvan Albert
Joachim Boomberschloss wrote: the code is already written in Python, using the standard libraries and several extension modules One thing to keep in mind is that Jython does not integrate CPython, instead it "understands" python code directly. So if you have a C extension that works with python i

Integration with java

2005-01-14 Thread Joachim Boomberschloss
gauge the viability of integration with Java via Jython with minimal impact on present code, on the complexity of future code, and on deadlines! I need to know in general how dirty it will be to combine the two languages, and what the costs I should take into account are. I"m also int