Subversion 1.7 Eclipse integration in Ubuntu 12
Almost a year ago I posted about getting Subclipse/Subversion/Eclipse/Javahl to play nicely together in Ubuntu 11.10.
Things have changed a little with Quantal Quetzal (notably that canonical have updated their repo's to support SVN 1.7.7 and that the libsvn-java installation has moved), so here's an updated note for getting Subversion 1.7.x integration working with Eclipse (3.7.x) and Subclipse 1.8.x on Ubuntu 12.10.
I'm assuming you already have Eclipse and Subclipse installed (with all the optional extras).
To use the native svn integration you will of course need subversion installed, so install Subversion from canonical's repo's -
sudo apt-get install subversion.
You'll also need libsvn-java, to allow subclipse to talk to svn -
sudo apt-get install libsvn-java.
To enable Eclipse to see your libsvn-java installation, go to the eclipse install directory (I install in
/home/steve/dev/tools/eclipse) and edit the eclipse.ini file.
You need to add
-Djava.library.path=/usr/lib/x86_64-linux-gnu/jni/, which is where libsvn-java's native libraries get installed. Add it immediately following
-vmargs. My eclipse.ini file now looks like this:
-startup plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar --launcher.library plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.100.v20110505 -showsplash org.eclipse.platform --launcher.XXMaxPermSize 256m --launcher.defaultAction openFile -vmargs -Djava.library.path=/usr/lib/x86_64-linux-gnu/jni/ -Xms40m -Xmx600m
If you use Subclipse but never previously installed Javahl you probably see irritating warning dialogs the first time you do anything in Eclipse after a restart. Installing javahl correctly will prevent those :).blog comments powered by Disqus