Hi,

 

I,am not able to call python member function from java. Any reason why this simple call is not working. Am I calling the function in right way.

 

 

 

1)      Test.Py

 

class Test:

    def dump(self):

                    pass

 

 

2)      PythonTest.Java

 

package pytest;

 

public class PythonTest {

 

    public static void main(String[] args) {

        Test t = new Test();

        t.dump();

    }

}

 

Compilation steps

 

1)      Jythonc –package pytest Test.Py (generated .class files in pytest directory, this directory is having PythonTest.Java file)

2)      Javac pygraph\PythonTest.Java  results in following compilation error

 

pygraph\PythonTest.java:7: cannot find symbol

symbol  : method dump()

location: class pygraph.Test

                t.dump();

 

 

Thanks

Mahi