ubuntu 12.04 LTS 版eclipse svn报Failed to load JavaHL Library

Failed to load JavaHL Library.
These are the errors that were encountered:
no libsvnjavahl-1 in java.library.path
no svnjavahl-1 in java.library.path
no svnjavahl in java.library.path
java.library.path = /usr/lib/jni

按照以前的装法

1、sudo apt-get install libsvn-java

2、eclipse.ini中增加参数

-vmargs
-Dosgi.requiredJavaVersion=1.5
-Djava.library.path=/usr/lib/jni

就可以了,但安装配置好后还是报错Failed to load JavaHL Library.重新安装libsvn-java还是不灵,去usr/lib/jni发现jni不是个目录。原来是安装目录发生了改变。将jni的path改为如下就正常了。

-Djava.library.path=/usr/lib/x86_64-linux-gnu/jni/
 

参考资料http://pkgs.org/ubuntu-12.04/ubuntu-universe-amd64/libsvn-java_1.6.17dfsg-3ubuntu3_amd64.deb.html

    echo "deb http://opensource.wandisco.com/ubuntu lucid svn17" | sudo tee /etc/apt/sources.list.d/svn.list  
    sudo wget -q http://opensource.wandisco.com/wandisco-debian.gpg -O- | sudo apt-key add -  
    sudo apt-get update  
    sudo apt-get dist-upgrade

原创文章,转载请注明: 转载自海波无痕

本文链接地址: ubuntu 12.04 LTS 版eclipse svn报Failed to load JavaHL Library

文章的脚注信息由WordPress的wp-posturl插件自动生成

此条目发表在javaee, server分类目录,贴了, , , , , 标签。将固定链接加入收藏夹。

发表评论

电子邮件地址不会被公开。 必填项已用*标注

评论链接可以 移除 nofollow.