eclipse subclipse javahl 库加载错误

网上搜集
http://islandlinux.org/howto/installing-javahl-subclipseeclipse-ubuntu


在linux下,eclipse安装了subclipse后,在使用svn时会报错
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/jvm/java-6-sun-1.6.0.03/jre/lib/i386/client::/
usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386::/usr/lib/firefox:/usr/lib/
firefox/:/usr/java/packages/lib/i386:/lib:/usr/lib

解决方法
首先安装 libsvn-java

sudo  apt-get install libsvn-java

安装完成后,修改eclipse的启动配置文件  eclipse.ini

增加如下参数

VMARGS="-Djava.library.path=/usr/lib/jni"

你可能感兴趣的:(java,eclipse,jvm,ubuntu,firefox)