At issue is this. For a particular application with which I will be developing, I need to have subversion support from within Eclipse.
The version of Eclipse that I had installed is Ganymede, or 3.4. Following the instructions on several tutorials, I use the Eclipse built-in installer and add the Subversive plugin. Then I add a connector. Then I attempt to access an SVN repository. Except it doesn’t work. Seems the connector won’t load.
“Selected SVN connector library is not available or cannot be loaded. …”
In this instance, Google was not my friend — at least not for a long long time. I put this on my blog in the hopes that Google will be kinder to you, should you find yourself in the same situation.
Ultimately I built Subversion from scratch — including the javalh library. I downloaded the lastest source from here: subversion-1.6.11 unpacked and built it.
cd subversion-1.6.11
./configure
make
sudo make install
I tried eclipse again, still no good. The error message didn’t even change. Googled around some more, investigating the javahl connector, trying to determine it’s location, and why Eclipse couldn’t find it. Eventually I realized that javahl had a separate make target, I made and installed it.
cd subversion-1.6.11
make javahl
sudo make javahl-install
At this point I have the following installed:
/usr/local/lib/libsvnjavahl-1.0.0.0.dylib
/usr/local/lib/libsvnjavahl-1.0.dylib
/usr/local/lib/libsvnjavahl-1.a
/usr/local/lib/libsvnjavahl-1.dylib
/usr/local/lib/libsvnjavahl-1.la
/usr/local/lib/svn-javahl
/usr/local/lib/svn-javahl/svn-javahl.jar
So, I try Eclipse again, setting my svn connector to native javahl. Still no good. Still the same error message.
I update my DYLD_LIBRARY_PATH to include /usr/local/lib and my PATH to include /usr/local/lib/svy-javahl/ (it already includes /usr/local/lib ) Restart Eclipse, and …. still no good.
OK — now I’m really burning. There has got to be a solution to this. I hit StackOverflow — and find paydirt with this question, where they refer to three connectors: the base connector and both the SVNKit and JavaHL connectors. They also specify an authoritative update-site to get them from, subversive update-site/
But I didn’t really figure it out until I hit this post: getting svn running under eclipse 34 ganymede/ where I read:
You’ll find a list mit all available connectors. You certainly can install all of them and try them out, one by one, which fits best for your environment. For me however, the “Native JavaHL 1.4.5 connector” together with the “SVNKit 1.1.7″ connector worked.
(emphasis added)
Hoping anew, I uninstalled previously installed svn connectors, toggled the now deprecated subversive update-site link ‘off’ in manage sites pane, and then restarted Eclipse. Then I added the now-authoritative update-site, selected the three connectors, the base connector, the 1.6 javahl connector, and the SVNKit 1.3.2 connector, and installed them. I hit install, and then restarted Eclipse when it finished.
It worked!
Checking Preferences | Team | SVN | connector panel, I see that the active connector is SVNKit 1.3.2 r6267 (for SVN 1.6.6, all platforms), and when attempting to access a repository, I am able to without error.
At this point I can’t tell you if building the latest (?) version of Subversion helped the situation or not.
