If you have not installed Eclipse, install it first, or download the ADT Bundle provided by Google directly.
sudo apt-get install eclipse
Installing Subversion
sudo apt-get install subversion
Installing Subversion plugins on eclipse
Get the Java bindings for Subversion:
sudo apt-get install libsvn-java
Now you are ready to install the plugin.
Open eclipse;
Enter Help, Install New software;
Click the "Add" button.
Enter the appropriate name and address information "http://subclipse.tigris.org/update_1.8.x" in the pop-up window:
Add the libraries for Subclipse
The address in the image above is for Eclipse 3.2+ and Subversion 1.6.x.
If you have different versions of Eclipse or Subversion, refer to the following corresponding relationship modifications:
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 the link below: Http://subclipse.tigris.org/servlets/ProjectProcess?pageID=p4wYuA.
Then click "OK". You can see the options shown below:
Subclipse installation Options
If you're not sure which Subclipse components you need, you can tick all the content. Of course, you can also go to this page to install/uninstall the corresponding components at any time later, if necessary.
Click "Next" and finally "Finish".
After the plug-in installation is complete, restart Eclipse.
It's not over yet, and you need to configure Javahl.
Edit 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 path above is for a 32-bit environment, and the path to the 64-bit environment should be /usr/lib/x86_64-linux-gnu/jni. If you are unsure about the location of the Javahl library in your environment, search for libsvnjavahl-1.so:
sudo find / -name "libsvnjavahl-1.so"
search results are what you need to add to Eclipse.ini the path in the file.
The eclipse.ini file is probably styled as follows:
$ cat/usr/lib/eclipse/ eclipse.ini-startupplugins/org.eclipse.equinox.launcher_1.0.201.r35x_v20090715.jar--launcher.libraryplugins/ org.eclipse.equinox.launcher.gtk.linux.x86_1.0.200. V20090520-showsplashorg.eclipse.platform--launcher.xxmaxpermsize256m-startup--launcher.library-showsplashorg.eclipse.plat Form--launcher. Xxmaxpermsize256m-startup/usr/lib/eclipse/plugins/org.eclipse.equinox.launcher_1.0.201.r35x_ v20090715.jar--launcher.library/usr/lib/eclipse/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.200. V20090520-vmargs-djava.library.path=/usr/lib/jni - dorg.eclipse.equinox.p2.reconciler.dropins.directory=//usr/share/eclipse/ Dropins-xms40m-xmx256m-dorg.eclipse.equinox.p2.reconciler.dropins.directory=//usr/share/eclipse/dropins
For more information about Javahl, refer to the following link: http://subclipse.tigris.org/wiki/JavaHL#head-bb1dd50f9ec2f0d8c32246430c00e237d27a04fe.
After this step, you should already be able to use subversion in Eclipse to manage your project.