title: Calling Java from Python
body: <p>What is the best way to call java from python?
  (jython and RPC are not an option for me).</p>
  <p>I've heard of JCC: <a href="http://pypi.python.org/pypi/JCC/1.9" rel="noreferrer">http://pypi.python.org/pypi/JCC/1.9</a>
  a C++ code generator for calling Java from C++/Python
  But this requires compiling every possible call; I would prefer another solution.</p>
  <p>I've hear about JPype: <a href="http://jpype.sourceforge.net/" rel="noreferrer">http://jpype.sourceforge.net/</a>
  tutorial: <a href="http://www.slideshare.net/onyame/mixing-python-and-java" rel="noreferrer">http://www.slideshare.net/onyame/mixing-python-and-java</a></p>
  <pre><code>import jpype 
  jpype.startJVM(path to jvm.dll, &quot;-ea&quot;) 
  javaPackage = jpype.JPackage(&quot;JavaPackageName&quot;) 
  javaClass = javaPackage.JavaClassName 
  javaObject = javaClass() 
  javaObject.JavaMethodName() 
  jpype.shutdownJVM() 
  </code></pre>
  <p>This looks like what I need.
  However, the last release is from Jan 2009 and I see people failing to compile JPype.</p>
  <p>Is JPype a dead project?</p>
  <p>Are there any other alternatives?</p>