[英]Failed to load JavaHL Library.- linux/eclipse
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: 环境:
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位的lib,但它没有帮助 - 我仍然= =相同的错误(只有最后一行更改 - 到64位路径)另外,我不知道为什么它改变了java.library.path后,它正在查看/ usr / lib / jni /。
I was annoyed by that message so I did this and it disappeared! 我对这条消息很生气,所以我这样做了,它就消失了!
To solved just install the package with this command: 要解决只需使用此命令安装包:
sudo apt-get install libsvn-java sudo apt-get install 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
https://danangindrak.wordpress.com/2012/02/23/solved-memperbaiki-subclipse-error-default-svn-client-not-found-pada-eclipse/ https://danangindrak.wordpress.com/2012/02/23/solved-memperbaiki-subclipse-error-default-svn-client-not-found-pada-eclipse/
OK I just ran into the same problem. 好吧,我刚遇到同样的问题。 I installed the javaHL lib but that didn't fix it alone. 我安装了javaHL lib,但没有单独修复它。 I was able to fix it by double checking which version of subversion I had installed in synaptic. 我能够通过仔细检查我在synaptic中安装了哪个版本的subversion来修复它。 I actually had 1.6.x while I installed the subclipse for version 1.8.x. 我在安装版本1.8.x的subclipse时实际上有1.6.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 所以我重新开始,删除了我的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.6x版本的链接:)
The problem is that you don't have libsvn-java installed. 问题是你没有安装libsvn-java。 To solved just install the package with this command: 要解决只需使用此命令安装包:
sudo apt-get install libsvn-java
and you are read use subclipse. 你读的是使用subclipse。
problem solved - the reason was that 64b Subversive SVN Connectors that were installed couldn't work with 32b JDK; 问题解决了 - 原因是安装的64b Subversive SVN连接器无法与32b JDK配合使用; I've re-installed eclipse to 32b version and everything is ok 我已经重新安装了eclipse到32b版本,一切都很好
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.