首页 > 代码库 > ubuntu下安装subeclipse插件血泪史
ubuntu下安装subeclipse插件血泪史
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
这表示JavaHL没有安装
2.安装JavaHL
安装libsvn-java
apt-get install libsvn-java
查找到libsvnjavahl-1.so所在路径
find / -name libsvnjavahl-1.so
3.修改eclipse配置文件
打开eclipse解压目录下的eclipse.ini
-vmargs
-Djava.library.path=/usr/lib/x86_64-linux-gnu/jni
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
其中/usr/lib/x86_64-linux-gnu/jni 就是find / -name libsvnjavahl-1.so指令所返回的路径
4.重启eclipse
还是会有异常:
Incompatible JavaHL library loaded. 1.7.x or later required.
这个时候,打开Peference->tean->SVN
将SVN接口选择SVNKit(Pure Java)SVNKit v1.7.5.9382
问题解决
参考:
http://subclipse.tigris.org/wiki/JavaHL#head-3a1d2d3c54791d2d751794e5d6645f1d77d95b32
http://289972458.iteye.com/blog/1556199
ubuntu下安装subeclipse插件血泪史