Hi,
I am trying to call a python script (Python 2.5) and implement one of its functions. I have successfully called the script and executed it with jep.runscript(" sample.py").
Does anyone know how I can call individual functions within the python script?
Thanks in advance...
User Profile
Collapse
-
call Python script and add parameters
-
Call Java Methods from Python Script
Hi,
I am trying to call java methods from a python script. Jython is not an option. I have looked at using Jpype. Below is my code thus far:
Jpype.py
...Code:from jpype import * startJVM("C:\Program Files\Java\jdk1.6.0_12\jre\bin\client", "-ea", "-Djava.class.path=%s" % classpath) com =JPackage("CallJavaFromPython") jp = com.Jpype1() jp.printArgument("XXX")
No activity results to display
Show More