SVN error on Eclipse/Ubuntu: Failed to load JavaHL Library
I’ve installed subclipse and when I restart eclipse and try to share a project, I get this error:
The error is:
In most of the cases is due to the lack of the libsvn-java library, so just install it:
Now you have to tell eclipse where to find this libraries. First, locate where the is:
Now, edit PATH_TO_ECLIPSE/eclipse.ini and add this line below -vmargs:
This is my full eclipse.ini with the line already added:
If you still get the error, you’d probably modified the wrong eclipse.ini. In my case, I have a copy of eclipse decompressed in /app folder, but I also have eclipse.ini in /etc, /usr/lib/eclipse and /opt/ibm/lotus/notes/framework/rcp/eclipse/plugins/com.ibm.rcp.base_220.127.116.1100729-1241/linux/x86/. So, be sure to modify the correct eclipse.ini.
To check if you have modified the correct eclipse.ini, you can follow the Linux troubleshooting section at http://subclipse.tigris.org/wiki/JavaHL.