title: How do I import user built jars in Python using JPype?
body: <p>I am using JPype in Python so I can call Java functions. I am having trouble importing my own jar files.</p>
  
  <p>I have this jar: <code>/home/di/eclipse_plugins/plugins/org.eclipse.birt.report.engine_4.2.1.v20120820.jar</code></p>
  
  <p>In the <code>org.eclipse.birt.report.engine.api</code> package there is a <code>EngineConfig</code> class definition. I am trying to instantiate and use this class I have in that jar. In regular Java this is what I would have:</p>
  
  <pre><code>import org.eclipse.birt.report.engine.api.EngineConfig;
  
  EngineConfig config = new EngineConfig();     
  config.setLogConfig("/home/di/logs");
  </code></pre>
  
  <p>I have this in Python:</p>
  
  <pre><code>import jpype
  from jpype import *
  
  jvmPath = jpype.getDefaultJVMPath() 
  jpype.startJVM(jvmPath, "-Djava.class.path=/home/di/eclipse_plugins/plugins/*.jar")
  engineConfig = JPackage("org").eclipse.birt.report.engine.api.EngineConfig
  engineConfig.setLogConfig("/home/di/logs")
  jpype.shutdownJVM() 
  </code></pre>
  
  <p>However, when I run this, I get this error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "test.py", line 15, in &lt;module&gt;
      engineConfig.setLogConfig()
    File "/usr/lib64/python2.6/site-packages/jpype/_jpackage.py", line 53, in __call__
      raise TypeError, "Package "+self.__name+" is not Callable"
  TypeError: Package org.eclipse.birt.report.engine.api.EngineConfig.setLogConfig is not Callable
  </code></pre>