title: Using a java library from python
body: <p>I have a python app and java app. The python app generates input for the java app and invokes it on the command line.</p>
  
  <p>I'm sure there must be a more elegant solution to this; just like using JNI to invoke C code from Java.</p>
  
  <p>Any pointers?
  (FYI I'm v. new to Python)  </p>
  
  <p><strong>Clarification</strong> (at the cost of a long question: apologies)
  The py app (which I don't own) takes user input in the form of a number of configuration files. It then interprits these and farms work off to a number of (hidden) tools via a plugin mechanism. I'm looking to add support for the functionality provided by the legacy Java app.</p>
  
  <p>So it doesn't make sense to call the python app from the java app and I can't run the py app in a jython environment (on the JVM).</p>
  
  <p>Since there is no obvious mechanism for this I think the simple CL invocation is the best solution.</p>