Reprinted from: http://my.oschina.net/FengJ/blog/56828
In ubuntu 12.04, eclipse usually encounters two problems when installing the svn plug-in:
1) 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
According to the previous Installation Method
1. sudo apt-Get install libsvn-Java
2. Add parameters in eclipse. ini.
-Vmargs
-Dosgi. requiredjavaversion = 1.5
-Djava. Library. Path =/usr/lib/JNI
You can, but after the installation and configuration are complete, the error "failed to load javahl library." re-installing libsvn-Java "still does not work. Go to usr/lib/JNI and find that JNI is not a directory. It turns out that the installation directory has changed. Change the JNI path to the following.
-Djava. Library. Path =/usr/lib/i386-linux-gnu/JNI/
If you have installed a 64-bit system, change it:
-Djava. Library. Path =/usr/lib/x86_64-linux-gnu/JNI/
2) Ubuntu incompatible javahl library loaded. 1.7.x or later required
Javahl version is too low. In ubuntu 12.04, the version installed through the $ apt-Get install libsvn-Java command is 1.6.x.
If your eclipse version is 3.7.2 and the default subclipse version is 1.8.x, it requires javahl to be above 1.7.
So you need to uninstall subclipse and change it to 1.6.x.
: Http://subclipse.tigris.org/
Http://subclipse.tigris.org/update_1.6.x