找到了下面这个英文解决方法,写的很详细,备用座位参考。
While installing the subversion plugin Subclipse in the Eclipse IDE I came across a problem. Subclipse uses "JavaHL (JNI)" to interface with subversion by default. This default setting generates an error when accessing the "Window->Preferences->Team->SVN" preferences:
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
NOTE: I am using Sun Java
This error does not seem to affect the basic subversion functionality (eg, checkout, commit, merge, etc.) and only appears when accessing the SVN preferences. However I have a custom subversion config I like to use in PHP development and I need to be able to access the SVN preferences.
The simplest way to bypass this issue is to select the "SVNKit (Pure Java)" in the "SVN interface" section of the SVN preferences. However if you require and/or desire the JavaHL subversion interface read on for a fix.
Install libsvn-java
The Debian/Ubuntu package libsvn-java has the libsvnjavahl-1.so file that is required by JavaHL subversion interface. Install libsvn-java by typing the following into a command line:
sudo apt-get install libsvn-java
Restart Eclipse.
After installation is complete the required file (libsvnjavahl-1.so) is installed into the /usr/lib/jni directory. Default installations of Eclipse will pick this directory up automatically. Non-standard installation, such as ones installed by hand, will not find the required file.
Non-standard Installations
I need to tell Eclipse where to find libsvnjavahl-1.so for non-standard installations. The error message indicates the required file cannot be found in the paths defined by java.library.path. We can either place the file (via symlink) into one of the specified paths OR set the java.library.path to point to the /usr/lib/jni directory. Using a symlink is viable however future upgrades of java may cause the installation to break. As illustrated below I have chosen to overwrite the java.library.path variable.
Set java.library.path via eclipserc
This solution affects the Eclipse installation on a per-user basis. Changes made here will not effect anyone else using Eclipse. To over-ride the java.library.path variable we will need to create a file called eclipserc in the .eclipse directory:
gedit ~/.eclipse/eclipserc
NOTE: The ~/.eclipse directory is created when Eclipse is first run.
Add the following line to ~/.eclipse/eclipserc:
VMARGS="-Djava.library.path=/usr/lib/jni"
Save the file and close it. Restart Eclipse and JavaHL will no longer generate error messages when accessing the SVN preferences.
参考连接
http://islandlinux.org/howto/installing-javahl-subclipseeclipse-ubuntu
分享到:
相关推荐
用于Myeclipse2017SVN插件安装
将资源解压到myeclipse的dropins目录下,重启myeclipse即可
1.svn插件安装 2.MyEclipse中svn插件安装 3.MyEclipse中svn插件使用方法
MyEclipse安装svn插件
MyEclipse的SVN插件包,适用于MyEclipse8.0以上的版本。
svn 插件 myeclipse 插件文件+安装方法在压缩包内
适用于win7系统下MyEclipse 10的SVN插件,压缩包中包含 site-1.8.22.zip
MyEclipse2017 SVN插件,对应文件夹依次覆盖;然后重启MyEclipse,即可使用SVN
MyEclipseSVN插件 1.找到MyEclipse10 在安装目录下的dropins文件夹 2.打开dropins文件夹,新建一个svn文件夹 3.解压缩下载好的压缩包 4.把features和plugins文件夹拷贝到dropins文件夹下的SVN文件夹中
MyEclipse8.5 svn插件及安装说明
myeclipse的svn插件,myeclipse的svn插件,myeclipse的svn插件,myeclipse的svn插件,
myeclipse安装svn插件的多种方式
Myeclipse8.6安装svn插件 及 步骤说明
MyEclipse8.5 SVN 插件包,用于安装SVN插件
将该插件解压后放入myeclipse安装路径下的dropins文件夹下
myeclipse加svn插件,简单的方式
MyEclipse的svn插件,eclipse也可以安装,将这个包解压到MyEclipse的dropins或者eclipse的dropins目录下,然后重新打开MyEclipse或者eclipse就可以自动识别到了
myeclipse2014_svn插件,简单易用, myeclipse2014_svn插件,简单易用。