title: How to call a python method from a java class?
body: <p>I am using Jython within a Java project.</p>
  
  <p>I have one Java class: <code>myJavaClass.java</code> and one Python class: <code>myPythonClass.py</code>    </p>
  
  <pre><code>public class myJavaClass{
      public String myMethod() {
          PythonInterpreter interpreter = new PythonInterpreter();
          //Code to write
      }
   }
  </code></pre>
  
  <p>The Python file is as follows:</p>
  
  <pre><code>class myPythonClass:
      def abc(self):
          print "calling abc"
          tmpb = {}
          tmpb = {'status' : 'SUCCESS'}
          return tmpb
  </code></pre>
  
  <p>Now the problem is I want to call the <code>abc()</code> method of my Python file from the <code>myMethod</code> method of my Java file and print the result.</p>