title: import jcc, DLL load failed
body: <p>I build JCC 2.12. Next, I tried to import jcc but I get this error message:</p>
  
  <p><code>ImportError: DLL load failed: The specified module could not be found.</code></p>
  
  <p>First I think about jvm.dll, and I put direct link to jcc\windows.py</p>
  
  <blockquote>
    <p>def add_jvm_dll_directory_to_path():</p>
  
  <pre><code>path = os.environ['Path'].split(os.pathsep)
  dll_path = 'C:\\Program Files\\Java\\jdk1.6.0_30\\jre\\bin\\server'
  path.append(dll_path)
  os.environ['Path'] = os.pathsep.join(path)
  return True
  
  raise ValueError, "jvm.dll could not be found"
  </code></pre>
  </blockquote>
  
  <p>Second. I try to add C:\Python27\Lib\site-packages\JCC-2.11-py2.7-win32.egg to the PATH</p>
  
  <p>Finally, I try another pre-builded jcc from <a href="http://code.google.com/a/apache-extras.org/p/pylucene-extra" rel="nofollow">http://code.google.com/a/apache-extras.org/p/pylucene-extra</a> and get the same error.</p>
  
  <p>Which library is needed?</p>