无法加载 JavaHL 库。- linux/eclipse
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9659587/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Failed to load JavaHL Library.- linux/eclipse
提问by Oleksandr Martynov
While trying to install the Subversion plugin I get this error when Eclipse starts:
在尝试安装 Subversion 插件时,Eclipse 启动时出现此错误:
Failed to load JavaHL Library.
These are the errors that were encountered:
no libsvnjavahl-1 in java.library.path
/usr/lib/jni/libsvnjavahl-1.so.0.0.0: /usr/lib/jni/libsvnjavahl-1.so.0.0.0: wrong ELF class: ELFCLASS64 (Possible cause: architecture word width mismatch)
no svnjavahl in java.library.path
java.library.path = /usr/lib/jni
environment:
环境:
- java version "1.6.0_29"
- Java(TM) SE Runtime Environment (build 1.6.0_29-b11)
- Java HotSpot(TM) Client VM (build 20.4-b02, mixed mode, sharing)
- Linux debian 2.6.32-5-amd64 #1 SMP Mon Jan 16 16:22:28 UTC 2012 x86_64 GNU/Linux
- java版本“1.6.0_29”
- Java(TM) SE 运行时环境(构建 1.6.0_29-b11)
- Java HotSpot(TM) 客户端 VM(构建 20.4-b02,混合模式,共享)
- Linux debian 2.6.32-5-amd64 #1 SMP Mon Jan 16 16:22:28 UTC 2012 x86_64 GNU/Linux
I tried changing my java.library.path to a 64-bit lib but it doesn't help - I still go=et the same error (only last line changes - to a 64-bit path) Also, I have no idea why it's looking in /usr/lib/jni/ even after I change the java.library.path.
我尝试将我的 java.library.path 更改为 64 位库,但它没有帮助 - 我仍然 go=et 相同的错误(仅最后一行更改 - 为 64 位路径)此外,我不知道为什么即使在我更改了 java.library.path 之后,它仍在 /usr/lib/jni/ 中查找。
采纳答案by Steve Ham
I was annoyed by that message so I did this and it disappeared!
我对那条消息感到恼火,所以我这样做了,它消失了!
回答by pharaoh
The problem is that you don't have libsvn-java installed. To solved just install the package with this command:
问题是你没有安装 libsvn-java。要解决,只需使用以下命令安装软件包:
sudo apt-get install libsvn-java
and you are read use subclipse.
并且您正在阅读使用 subclipse。
回答by gnarbarian
OK I just ran into the same problem. I installed the javaHL lib but that didn't fix it alone. I was able to fix it by double checking which version of subversion I had installed in synaptic. I actually had 1.6.x while I installed the subclipse for version 1.8.x. so I started over, deleted my eclipse folder, extracted it and installed subclipse from the following eclipse update site: http://subclipse.tigris.org/update_1.6.x
好吧,我刚刚遇到了同样的问题。我安装了 javaHL lib,但这并不能单独修复它。我能够通过仔细检查我在突触中安装的 subversion 版本来修复它。当我安装 1.8.x 版的 subclipse 时,我实际上有 1.6.x。所以我重新开始,删除了我的 eclipse 文件夹,将其解压缩并从以下 eclipse 更新站点安装了 subclipse:http: //subclipse.tigris.org/update_1.6.x
more on the incompatibility: http://subclipse.tigris.org/wiki/JavaHL
更多关于不兼容性:http: //subclipse.tigris.org/wiki/JavaHL
http://subclipse.tigris.org/servlets/ProjectProcess?pageID=p4wYuA(get the one that says Links for 1.6.x Release:)
http://subclipse.tigris.org/servlets/ProjectProcess?pageID=p4wYuA(获取 1.6.x 版本的链接:)
回答by Oleksandr Martynov
problem solved - the reason was that 64b Subversive SVN Connectors that were installed couldn't work with 32b JDK; I've re-installed eclipse to 32b version and everything is ok
问题已解决 - 原因是安装的 64b Subversive SVN Connectors 无法与 32b JDK 一起使用;我已经将 eclipse 重新安装到 32b 版本,一切正常
回答by user151968
To solved just install the package with this command:
要解决,只需使用以下命令安装软件包:
sudo apt-get install libsvn-java
须藤 apt-get 安装 libsvn-java
and you must config eclipse.inito add path /jni
并且您必须配置 eclipse.inito 添加路径 /jni
example :
例子 :
-Djava.library.path=/usr/lib/x86_64-linux-gnu/jni
-Djava.library.path=/usr/lib/x86_64-linux-gnu/jni