Install Subversion
sudo apt-get install subversion
Install the Subversion plugin on Eclipse
Get the Java bindings for Subversion:
sudo apt-get install libsvn-java
Open Eclipse;
Go to Help -> Install New Software;
Click the "Add" button.
Enter the appropriate name and address information in the pop-up window "http://subclipse.tigris.org/update_1.8.x"
If you have a different Eclipse or Subversion version, please refer to the following corresponding changes:
Name: Subclipse 1.8.x (Subversion 1.7+)
URL: http://subclipse.tigris.org/update_1.8.x
Name: Subclipse 1.6.x (Eclipse 3.2+)
URL: http://subclipse.tigris.org/update_1.6.x
Name: Subclipse 1.4.x (Eclipse 3.2+)
URL: http://subclipse.tigris.org/update_1.4.x
Name: Subclipse 1.2.x (Eclipse 3.2+)
URL: http://subclipse.tigris.org/update_1.2.x
Name: Subclipse 1.0.x (Eclipse 3.0/3.1)
URL: http://subclipse.tigris.org/update_1.0.x
You can also find the updated correspondence from this link: http://subclipse.tigris .org/servlets/ProjectProcess?pageID=p4wYuA .
Then click "OK". You can see the options shown below:
![Install SVN plugin (Subversion Subclipse) in Eclipse under Ubuntu](http://img0.ph.126.net/MyThm_fRQMcaCQTwd_Dr7A==/6597628318564666149.png)
Subclipse Installation Options
If you're not sure which Subclipse components you need, you can check all of them. Of course, you can also enter this page to install/uninstall the corresponding components at any time according to your needs.
Click "Next" and finally "Finish".
When the plugin is installed, restart Eclipse.
This is not the end, but also need to configure JavaHL.
Edit the eclipse.ini file:
sudo vi /usr/lib/eclipse/eclipse.ini
Add the script below the -vmargs line:
-Djava.library.path=/usr/lib/jni
Note: The above path is for 32-bit environment, the path of 64-bit environment should be /usr/lib/x86_64-linux-gnu/jni. If you are not sure where the JavaHL library is located in your environment, search for libsvnjavahl-1.so:
sudo find / -name "libsvnjavahl-1.so"
The search result is the path you need to add to the eclipse.ini file.