简体   繁体   English

导入jcc,DLL加载失败

[英]import jcc, DLL load failed

I build JCC 2.12. 我建立了JCC 2.12。 Next, I tried to import jcc but I get this error message: 接下来,我尝试导入jcc,但收到以下错误消息:

ImportError: DLL load failed: The specified module could not be found.

First I think about jvm.dll, and I put direct link to jcc\\windows.py 首先,我考虑了jvm.dll,并直接链接到jcc \\ windows.py

def add_jvm_dll_directory_to_path(): def add_jvm_dll_directory_to_path():

 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" 

Second. 第二。 I try to add C:\\Python27\\Lib\\site-packages\\JCC-2.11-py2.7-win32.egg to the PATH 我尝试将C:\\ Python27 \\ Lib \\ site-packages \\ JCC-2.11-py2.7-win32.egg添加到PATH

Finally, I try another pre-builded jcc from http://code.google.com/a/apache-extras.org/p/pylucene-extra and get the same error. 最后,我尝试从http://code.google.com/a/apache-extras.org/p/pylucene-extra另一个预构建的jcc,并得到相同的错误。

Which library is needed? 需要哪个库?

I meet the same question. 我遇到同样的问题。

try add jvm.dll's directory to envirement varible Path. 尝试将jvm.dll的目录添加到环境变量路径中。

follow is my jvm.dll directory. 接下来是我的jvm.dll目录。

C:\\Java\\jdk1.6.0_32\\jre\\bin\\client C:\\的Java \\ jdk1.6.0_32 \\ jre的\\ BIN \\客户端

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM