JEP and JPype in a single process
Konstantin Veretennicov
kveretennicov at gmail.com
Mon Jun 20 11:28:34 EDT 2005
On 6/20/05, skn <skn at skn.com> wrote:
> Hello,
>
> I have written a very simple java class file, which invokes a Python script
> using JEP.
. . .
> Now inside this Python script I want to make Java calls using JPype.
I am not familiar with either Jepp or JPype, but I spotted this
snippet on Jepp page (http://jepp.sourceforge.net/):
import jep
FileInputStream = jep.findClass('java.io.FileInputStream')
try:
fin = FileInputStream('adsf')
except jep.FileNotFoundException:
print 'Invalid file'
Are you sure you need to call JPype?
- kv
More information about the Python-list
mailing list