title: Is there any way to add jar file to pycharm and run jython directly?
body: <p>Here I have two questions:</p>
  
  <ol>
  <li>How to add external jar file while running .py file using jython like <code>java -cp</code> command?</li>
  <li>How to run .py file in pycharm using jython ?</li>
  <li>How pycharm deals with external jar like eclipse <code>configure build path</code> to add specific jar file to the project?</li>
  </ol>
  
  <p>Here is the scene I met:</p>
  
  <p>download all jar htmlutil jar file from sourceforge, and then write a <code>gartner.py</code> file, here is the import snippet in source code:</p>
  
  <pre><code>import com.gargoylesoftware.htmlunit.WebClient as WebClient
  import com.gargoylesoftware.htmlunit.BrowserVersion as BrowserVersion
  </code></pre>
  
  <p>And run such file in command line like this:</p>
  
  <pre><code>jython -J-classpath "/Users/crabime/Development Folder/htmlunit-2.23/lib/*" /Users/crabime/PycharmProjects/scrapimage/crabime/gartner.py
  </code></pre>
  
  <p>It can do what I want but it's too boring and I can not check its error while writing python file, so is there any method to solve this awkwardness?</p>