Howtos
Use svn with Eclipse Galileo on Ubuntu 9.10
By David
On Laptop ⋅ February 27, 2010 ⋅ Post
a comment
Filed Under eclipse,
linux,
subclipse,
svn
After wasting a lot of time myself, I thought this could serve some other people…
So here’s how I did it :
- First install the Subclipse plugin
- Run sudo eclipse (that will install plugins system-wide)
- Eclipse > Install new software > Add
- Name = “whatever”
- Location = http://subclipse.tigris.org/update_1.6.x
- OK
- Work with: “whatever”
- Select these to install :
- CollabNet Merge Client
- Subclipse
- Subclipse Integration for Mylyn 3.x
- Subversion Client Adapter
- Subversion JavaHL Native Library Adapter
- Subversion Revision Graph
- If you get a “Subversion 1.6 contains a bug that causes Eclipse to crash …. GNOME keyring … we recommand … “, choose OK.
- Next install the Java bindings for SVN
- sudo apt-get install libsvn-java
- Eclipse > Window > Preferences > Team > SVN
- If that triggers a “Failed to load JavaHL Library.” error, you need to add libsvnjavahl-1 in the Eclipse path :
- Just throw a symlink into one of the path in the error message :
1
2sudo ln -s /usr/lib/jni/libsvnjavahl-1.so /usr/lib/libsvnjavahl-1.so
sudo ln -s /usr/lib/jni/libsvnjavahl-1.so.0.0.0 /usr/lib/libsvnjavahl-1.so.0.0.0 - Restart eclipse and step 3 should be solved.
- Perhaps you want to use SVN with existing checkout project ?
- Right-click on your project in Eclipse
- Team > Share Project > svn > Validate Conneciton on Finish > Finish
- Screenshots
of what you can do with Subclipse
//UBUNTU****************
EclipseSubversion
Contents
|
Introduction
Subclipse is an Eclipse plugin that provides project integration
with Subversion repositories. Using Subclipse you can checkout,
browse, and share code from any Subversion repository.
See :
SubVersion
See : Official Subclipse Home Page
See : EclipseIDE
The Chinese translation of thie article.
Subversion support
First of all, install the subversion package (see InstallingSoftware)Installing Subclipse
The svn/javahl version in Ubuntu 9.04 (jaunty) is 1.5 so you need to install subclipse 1.4, for more info see [http://subclipse.tigris.org/wiki/JavaHL]. JavaHL is provided by the libsvn-java package, which matches the OS architecture's word size. Note that JavaHL does not install in a location that is on Eclipse's default path, so eclipse must be launched with -vmargs -Djava.library.path=/usr/lib/jni.NOTE: On Ubuntu 9.10+ you may need to install the eclipse-pde package before installing Subclipse.
- Click "Add..."
and add a new Remote Site with URL:
http://subclipse.tigris.org/update
Name: subclipse.tigris.org
- Note:
You do not need to select the other "integration"
packages unless you have Mylyn or Mylar and plan on integrating
with them. In fact, the integration packages can break things
unless you have the packages they're intended to integrate with.
A note on architecture
There is at least one bug forcing Eclipse 3.4 users to use 32-bit Eclipse on 64-bit Ubuntu, necessitating 32-bit compatibility Java and therefore 32-bit JavaHL (libsvn-java), which is not in the repositories. The alternative SVN implementation, SVNKit, is ill-maintained and does not properly handle SSH host key fingerprinting, so JavaHL is still recommended.Configuring a Subversion Repository
To configure Subclipse to connect to a repository open the SVN Repository Exploring perspective:Using Subclipse
Once you've configured your repository you can check out code into
a new Eclipse project. You can also create new project from
Subversion repositories by:
- Select a Repository
you've already configured and click Next, or choose create
a new repository location and click
Next.
Note: Old content about javahl to this page: SubversionAndJavahl. I believe the content is rather old, so if you use javahl please feel free to update the page.
Note: this guide has been tested on Ubuntu 7.06 (Feisty Fawn) and Ubuntu 7.10 (Gutsy Gibbon), and partially tested on Ubuntu 10.04 (Lucid Lynx).
No comments:
Post a Comment