User Profile

Collapse

Profile Sidebar

Collapse
hofsoc20
hofsoc20
Last Activity: Feb 18 '09, 08:40 PM
Joined: Feb 18 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • hofsoc20
    started a topic call Python script and add parameters
    in Java

    call Python script and add parameters

    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...
    See more | Go to post

  • hofsoc20
    started a topic Call Java Methods from Python Script

    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")
    ...
    See more | Go to post
    Last edited by bvdet; Mar 15 '09, 11:32 PM. Reason: Add code tags
No activity results to display
Show More
Working...