If you are interested in installing Subclipse as a SVN client for Eclipse, you can use the following steps, which are OS independent, so they are valid for Windows, Mac and Linux, except the procedure for installing and setting JavaHL library on Debian (and spin-off like Ubuntu).
In general terms, these are the steps for installing Subclipse in Eclipse:
- Open Eclipse, got to Help > Install New Software.
- Add the Subclipse’s URL to the specific Eclipse version you have. For instance, in Galileo you must add this one http://subclipse.tigris.org/update_1.6.x
- Choose all shown items: Core SVNkit Library, Optional JNA Library (recommended) and Subclipse.
- Accept the user agreement to star the installation process. At the end a message will pop up to warn you about the fact you are installing third-party software. Just say yes.
- When finished you will be asked to restart Eclipse.
JavaHL library on Debian
If you don’t want to use SVNKit library but JavaHL, then you must install this package:
aptitude install libsvn-java
You have two alternatives to notify Eclipse about the existence of that library:
- The right thing is to make Eclipse read the configuration file with the path to the JavaHL library. To be honest I couldn’t find the user’s eclipse.ini file, just the general /etc/eclipse.ini. There you can add the lines shown in bold:
- The other solution is to make a symbolic link to the library, somethink like:
- Reestar Eclipse and check changes by going to Preferences > Team > SVN, where you will be able to see the library version.
-startup plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar --launcher.library plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.200.v20090520 -showsplash org.eclipse.platform --launcher.XXMaxPermSize 256m -vmargs -Djava.library.path=/usr/lib/jni -Xms128m -Xmx512m
ln -s /usr/lib/jni/libsvnjavahl-1.so /usr/lib/
With the installation process explained at the beginning you have downloaded SVNKit, which be used as a substitution of JavaHL, without needing to configure any file at all and with the advantage of be an multi-platform solutions, I mean, it will work on Windows and Mac as well. To do so just go to Window > Preferences > Team > SVN and choose at the SVN section the SVNKit option:
With all these now you will be able to use this SVN client in Eclipse!!